Home
last modified time | relevance | path

Searched refs:writerIndex (Results 1 – 12 of 12) sorted by relevance

/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/
DAltsChannelCrypter.java62 ByteBuf plainBuf = outBuf.slice(outBuf.writerIndex(), outBuf.writableBytes()); in encrypt()
63 plainBuf.writerIndex(0); in encrypt()
69 ByteBuffer out = outBuf.internalNioBuffer(outBuf.writerIndex(), outBuf.writableBytes()); in encrypt()
77 outBuf.writerIndex(outBuf.writerIndex() + bytesWritten); in encrypt()
85 ByteBuf cipherTextAndTag = out.slice(out.writerIndex(), out.writableBytes()); in decrypt()
86 cipherTextAndTag.writerIndex(0); in decrypt()
103 ByteBuffer outBuffer = out.internalNioBuffer(out.writerIndex(), out.writableBytes()); in decrypt()
113 out.writerIndex(out.writerIndex() + bytesWritten); in decrypt()
DBufUnwrapper.java37 int writerIndex = buf.writerIndex(); in writableNioBuffers() local
38 buf.readerIndex(writerIndex); in writableNioBuffers()
39 buf.writerIndex(buf.capacity()); in writableNioBuffers()
46 buf.writerIndex(writerIndex); in writableNioBuffers()
DAltsTsiFrameProtector.java181 protectedBuf.writerIndex(protectedBuf.capacity()); in handleUnprotected()
343 unprotectedBuf.writerIndex(unprotectedBuf.writerIndex() - suffixBytes); in handlePayload()
349 unprotectedBuf.writerIndex(unprotectedBuf.writerIndex() - suffixBytes); in handlePayload()
401 ByteBuf out = in.slice(in.writerIndex(), len); in writeSlice()
402 in.writerIndex(in.writerIndex() + len); in writeSlice()
403 return out.writerIndex(0); in writeSlice()
DNettyTsiHandshaker.java67 out.writerIndex(out.writerIndex() + bytesWritten); in getBytesToSendToPeer()
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DByteBufTestUtils.java67 ByteBuf out = in.slice(in.writerIndex(), len); in writeSlice()
68 in.writerIndex(in.writerIndex() + len); in writeSlice()
69 return out.writerIndex(0); in writeSlice()
DBufUnwrapperTest.java88 int widx = buf.writerIndex(); in writableNioBuffers_indexesPreserved()
97 assertEquals(widx, buf.writerIndex()); in writableNioBuffers_indexesPreserved()
113 buf.writerIndex(1); in writableNioBuffers_worksWithNormal()
131 buf.writerIndex(1); in writableNioBuffers_worksWithComposite()
DTsiTest.java317 int ciphertextIdx = protect.writerIndex() - FakeChannelCrypter.getTagBytes() - 2; in corruptedCiphertextTest()
356 int tagIdx = protect.writerIndex() - 1; in corruptedTagTest()
DAltsProtocolNegotiatorTest.java246 unprotectedData.writerIndex(unprotectedBytes.length); in unprotectLargeIncomingFrame()
/external/grpc-grpc-java/benchmarks/src/jmh/java/io/grpc/benchmarks/netty/
DAbstractBenchmark.java238 request.writerIndex(request.capacity() - 1); in setup()
240 response.writerIndex(response.capacity() - 1); in setup()
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DNettyHandlerTestBase.java348 composite.writerIndex(composite.writerIndex() + buf.readableBytes()); in captureWrite()
/external/grpc-grpc-java/benchmarks/src/main/java/io/grpc/benchmarks/driver/
DLoadServer.java109 genericResponse.writerIndex(genericResponse.capacity() - 1); in LoadServer()
DLoadClient.java149 genericRequest.writerIndex(genericRequest.capacity() - 1); in LoadClient()