Home
last modified time | relevance | path

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

/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DAltsTsiFrameProtectorTest.java22 import static io.grpc.alts.internal.ByteBufTestUtils.writeSlice;
295 ByteBuf frameOut = writeSlice(outFrame, payloadBytes + FakeChannelCrypter.getTagBytes()); in parseFrame_oneFrameNoFragment()
332 ByteBuf frameOut1 = writeSlice(outFrame, payloadBytes1 + FakeChannelCrypter.getTagBytes()); in parseFrame_twoFramesNoFragment()
340 ByteBuf frameOut2 = writeSlice(outFrame, payloadBytes2 + FakeChannelCrypter.getTagBytes()); in parseFrame_twoFramesNoFragment()
381 ByteBuf frameOut1 = writeSlice(protectedBuf, payloadBytes1 + FakeChannelCrypter.getTagBytes()); in parseFrame_twoFramesNoFragment_Leftover()
389 ByteBuf frameOut2 = writeSlice(protectedBuf, payloadBytes2 + FakeChannelCrypter.getTagBytes()); in parseFrame_twoFramesNoFragment_Leftover()
449 ByteBuf frameOut1 = writeSlice(protectedBuf, payloadBytes1 + FakeChannelCrypter.getTagBytes()); in parseFrame_twoFramesFragmentSecond()
457 ByteBuf frameOut2 = writeSlice(protectedBuf, payloadBytes2 + FakeChannelCrypter.getTagBytes()); in parseFrame_twoFramesFragmentSecond()
DByteBufTestUtils.java65 static ByteBuf writeSlice(ByteBuf in, int len) { in writeSlice() method in ByteBufTestUtils
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/
DAltsTsiFrameProtector.java161 ByteBuf frameOut = writeSlice(protectedBuf, unprotectedBytesLeft + suffixBytes); in handleUnprotected()
340 ByteBuf out = writeSlice(unprotectedBuf, firstFrameUnprotectedLen + suffixBytes); in handlePayload()
346 out = writeSlice(unprotectedBuf, unprotectedLens.get(frameIdx) + suffixBytes); in handlePayload()
399 private static ByteBuf writeSlice(ByteBuf in, int len) { in writeSlice() method in AltsTsiFrameProtector