Searched refs:getEncodedSize (Results 1 – 2 of 2) sorted by relevance
92 + getEncodedSize(totalPackets) + FIELD_NUMBER_ENCODING_SIZE in getPacketHeaderSize()93 + getEncodedSize(messageId) + FIELD_NUMBER_ENCODING_SIZE in getPacketHeaderSize()94 + getEncodedSize(payloadSize) + FIELD_NUMBER_ENCODING_SIZE; in getPacketHeaderSize()104 + getEncodedSize(messageId) + FIELD_NUMBER_ENCODING_SIZE in getTotalPacketNumber()105 + getEncodedSize(Math.min(payloadSize, maxSize)) + FIELD_NUMBER_ENCODING_SIZE; in getTotalPacketNumber()115 if (getEncodedSize(totalPackets) == value) { in getTotalPacketNumber()135 private static int getEncodedSize(int value) { in getEncodedSize() method in BlePacketFactory
64 private static final int VERSION_SIZE = getEncodedSize(PROTOCOL_VERSION)175 int operationSize = getEncodedSize(operation.getNumber()) + FIELD_NUMBER_ENCODING_SIZE; in getProtoHeaderSize()178 int payloadEncodingSize = FIELD_NUMBER_ENCODING_SIZE + getEncodedSize(payloadSize); in getProtoHeaderSize()195 private static int getEncodedSize(int value) { in getEncodedSize() method in BLEMessageV1Factory