Searched refs:writerIndex (Results 1 – 14 of 14) sorted by relevance
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/ |
D | AltsChannelCrypter.java | 62 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()
|
D | BufUnwrapper.java | 37 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()
|
D | AltsTsiFrameProtector.java | 181 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()
|
D | NettyTsiHandshaker.java | 67 out.writerIndex(out.writerIndex() + bytesWritten); in getBytesToSendToPeer()
|
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/ |
D | ByteBufTestUtils.java | 67 ByteBuf out = in.slice(in.writerIndex(), len); in writeSlice() 68 in.writerIndex(in.writerIndex() + len); in writeSlice() 69 return out.writerIndex(0); in writeSlice()
|
D | BufUnwrapperTest.java | 88 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()
|
D | TsiTest.java | 317 int ciphertextIdx = protect.writerIndex() - FakeChannelCrypter.getTagBytes() - 2; in corruptedCiphertextTest() 356 int tagIdx = protect.writerIndex() - 1; in corruptedTagTest()
|
D | AltsProtocolNegotiatorTest.java | 248 unprotectedData.writerIndex(unprotectedBytes.length); in unprotectLargeIncomingFrame()
|
/external/flatbuffers/swift/Sources/FlatBuffers/ |
D | ByteBuffer.swift | 15 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()
|
D | FlatBufferBuilder.swift | 32 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/ |
D | AbstractBenchmark.java | 238 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/ |
D | LoadServer.java | 109 genericResponse.writerIndex(genericResponse.capacity() - 1); in LoadServer()
|
D | LoadClient.java | 149 genericRequest.writerIndex(genericRequest.capacity() - 1); in LoadClient()
|
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/ |
D | NettyHandlerTestBase.java | 348 composite.writerIndex(composite.writerIndex() + buf.readableBytes()); in captureWrite()
|