/** * returns the size of a SimpleString * * @param str the SimpleString to check * @return the size */ public static int sizeofString(final SimpleString str) { return str.sizeof(); }
@Override public int getEncodeSize() { return addressMatch.sizeof() + SimpleString.sizeofNullableString(sendRoles) + SimpleString.sizeofNullableString(consumeRoles) + SimpleString.sizeofNullableString(createDurableQueueRoles) + SimpleString.sizeofNullableString(deleteDurableQueueRoles) + SimpleString.sizeofNullableString(createNonDurableQueueRoles) + SimpleString.sizeofNullableString(deleteNonDurableQueueRoles) + SimpleString.sizeofNullableString(manageRoles); }
public int getEncodeSize() { return addressMatch.sizeof() + SimpleString.sizeofNullableString(sendRoles) + SimpleString.sizeofNullableString(consumeRoles) + SimpleString.sizeofNullableString(createDurableQueueRoles) + SimpleString.sizeofNullableString(deleteDurableQueueRoles) + SimpleString.sizeofNullableString(createNonDurableQueueRoles) + SimpleString.sizeofNullableString(deleteNonDurableQueueRoles) + SimpleString.sizeofNullableString(manageRoles); }
/** * returns the size of a SimpleString * @param str the SimpleString to check * @return the size */ public static int sizeofString(final SimpleString str) { return str.sizeof(); }
/** * returns the size of a SimpleString which could be null * * @param str the SimpleString to check * @return the size */ public static int sizeofNullableString(final SimpleString str) { if (str == null) { return 1; } else { return 1 + str.sizeof(); } }
/** * returns the size of a SimpleString which could be null * @param str the SimpleString to check * @return the size */ public static int sizeofNullableString(final SimpleString str) { if (str == null) { return 1; } else { return 1 + str.sizeof(); } }
public int getEncodeSize() { return addressMatch.sizeof() + setting.getEncodeSize(); }
@Override public int getEncodeSize() { return addressMatch.sizeof() + setting.getEncodeSize(); }