Home
last modified time | relevance | path

Searched refs:writerIndex (Results 1 – 14 of 14) 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.java248 unprotectedData.writerIndex(unprotectedBytes.length); in unprotectLargeIncomingFrame()
/external/flatbuffers/swift/Sources/FlatBuffers/
DByteBuffer.swift15 internal var writerIndex: Int { return _capacity - _writerSize } variable
18 public var reader: Int { return writerIndex }
121 memcpy(_memory.advanced(by: writerIndex - size), value, size) in push()
133 memcpy(_memory.advanced(by: writerIndex - len), &v, len) in push<T: Scalar>()
156 _memory.advanced(by: writerIndex - len).copyMemory(from: in push()
190 let currentWritingIndex = writerIndex in reallocate()
201 .advanced(by: writerIndex) in reallocate()
DFlatBufferBuilder.swift32 return Data(bytes: _bb.memory.advanced(by: _bb.writerIndex),
33 count: _bb.capacity - _bb.writerIndex)
43 let cp = _bb.capacity - _bb.writerIndex
44 let start = _bb.memory.advanced(by: _bb.writerIndex)
177 let vt2 = _bb.memory.advanced(by: _bb.writerIndex) in endTable()
/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/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()
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DNettyHandlerTestBase.java348 composite.writerIndex(composite.writerIndex() + buf.readableBytes()); in captureWrite()