Searched refs:writerIndex (Results 1 – 12 of 12) sorted by relevance
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()
37 int writerIndex = buf.writerIndex(); in writableNioBuffers() local38 buf.readerIndex(writerIndex); in writableNioBuffers()39 buf.writerIndex(buf.capacity()); in writableNioBuffers()46 buf.writerIndex(writerIndex); in writableNioBuffers()
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()
67 out.writerIndex(out.writerIndex() + bytesWritten); in getBytesToSendToPeer()
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()
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()
317 int ciphertextIdx = protect.writerIndex() - FakeChannelCrypter.getTagBytes() - 2; in corruptedCiphertextTest()356 int tagIdx = protect.writerIndex() - 1; in corruptedTagTest()
246 unprotectedData.writerIndex(unprotectedBytes.length); in unprotectLargeIncomingFrame()
238 request.writerIndex(request.capacity() - 1); in setup()240 response.writerIndex(response.capacity() - 1); in setup()
348 composite.writerIndex(composite.writerIndex() + buf.readableBytes()); in captureWrite()
109 genericResponse.writerIndex(genericResponse.capacity() - 1); in LoadServer()
149 genericRequest.writerIndex(genericRequest.capacity() - 1); in LoadClient()