Lines Matching refs:converter
93 ByteBuffer converter = ByteBuffer.wrap(valueBuf); in byteArrayToShort() local
94 converter.order(ByteOrder.nativeOrder()); in byteArrayToShort()
95 return converter.getShort(); in byteArrayToShort()
99 ByteBuffer converter = ByteBuffer.wrap(valueBuf); in byteArrayToInt() local
100 converter.order(ByteOrder.nativeOrder()); in byteArrayToInt()
101 return converter.getInt(offset); in byteArrayToInt()
134 ByteBuffer converter = ByteBuffer.allocate(4); in intToByteArray() local
135 converter.order(ByteOrder.nativeOrder()); in intToByteArray()
136 converter.putInt(value); in intToByteArray()
137 return converter.array(); in intToByteArray()
142 ByteBuffer converter = ByteBuffer.allocate(length); in uuidToByteArray() local
143 converter.order(ByteOrder.BIG_ENDIAN); in uuidToByteArray()
148 converter.putLong(msb); in uuidToByteArray()
149 converter.putLong(8, lsb); in uuidToByteArray()
150 return converter.array(); in uuidToByteArray()
155 ByteBuffer converter = ByteBuffer.allocate(length); in uuidsToByteArray() local
156 converter.order(ByteOrder.BIG_ENDIAN); in uuidsToByteArray()
163 converter.putLong(i * BD_UUID_LEN, msb); in uuidsToByteArray()
164 converter.putLong(i * BD_UUID_LEN + 8, lsb); in uuidsToByteArray()
166 return converter.array(); in uuidsToByteArray()
175 ByteBuffer converter = ByteBuffer.wrap(val); in byteArrayToUuid() local
176 converter.order(ByteOrder.BIG_ENDIAN); in byteArrayToUuid()
180 new UUID(converter.getLong(offset), converter.getLong(offset + 8))); in byteArrayToUuid()