Home
last modified time | relevance | path

Searched refs:BYTES (Results 1 – 3 of 3) sorted by relevance

/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/transport/sasl/
DTestDataFrameWriter.java38 private static final byte[] BYTES = new byte[] {0x32, 0x2A, (byte) 0xE1, 0x18, (byte) 0x90, 0x75}; field in TestDataFrameWriter
43 frameWriter.withOnlyPayload(BYTES); in testProvideEntireByteArrayAsPayload()
44 byte[] expectedBytes = new byte[BYTES.length + PAYLOAD_LENGTH_BYTES]; in testProvideEntireByteArrayAsPayload()
45 EncodingUtils.encodeBigEndian(BYTES.length, expectedBytes); in testProvideEntireByteArrayAsPayload()
46 System.arraycopy(BYTES, 0, expectedBytes, PAYLOAD_LENGTH_BYTES, BYTES.length); in testProvideEntireByteArrayAsPayload()
55 frameWriter.withOnlyPayload(BYTES, portionOffset, portionLength); in testProvideByteArrayPortionAsPayload()
58 System.arraycopy(BYTES, portionOffset, expectedBytes, PAYLOAD_LENGTH_BYTES, portionLength); in testProvideByteArrayPortionAsPayload()
76 frameWriter.withOnlyPayload(BYTES); in testProvidePayloadToIncompleteFrame()
84 frameWriter.withOnlyPayload(BYTES); in testWrite()
/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/partial/
DPartialThriftTestData.java34 public final byte[] BYTES = new byte[] {1, 2, 3}; field in PartialThriftTestData
58 .setBinaryField(BYTES) in createTestStruct()
92 binaryList.add(ByteBuffer.wrap(BYTES)); in initListFields()
148 binarySet.add(ByteBuffer.wrap(BYTES)); in initSetFields()
203 binaryMap.put(i, ByteBuffer.wrap(BYTES)); in initMapFields()
DTestPartialThriftDeserializer.java368 ByteBuffer bb = ByteBuffer.wrap(testData.BYTES); in validateListOfBinary()
454 ByteBuffer bb = ByteBuffer.wrap(testData.BYTES); in validateSetOfBinary()
563 ByteBuffer bb = ByteBuffer.wrap(testData.BYTES); in validateMapOfBinary()