Searched refs:nbBytesToDiscard (Results 1 – 1 of 1) sorted by relevance
478 final int nbBytesToDiscard = 4; in testDataPipeDiscard() local479 assertEquals(nbBytesToDiscard, in testDataPipeDiscard()480 handles.second.discardData(nbBytesToDiscard, DataPipe.ReadFlags.NONE)); in testDataPipeDiscard()483 ByteBuffer receiveBuffer = ByteBuffer.allocateDirect(bytes.length - nbBytesToDiscard); in testDataPipeDiscard()487 assertEquals(bytes.length - nbBytesToDiscard, readResult.getValue().intValue()); in testDataPipeDiscard()489 assertEquals(bytes.length - nbBytesToDiscard, receiveBuffer.limit()); in testDataPipeDiscard()490 byte[] receivedBytes = new byte[bytes.length - nbBytesToDiscard]; in testDataPipeDiscard()493 Arrays.copyOfRange(bytes, nbBytesToDiscard, bytes.length), receivedBytes)); in testDataPipeDiscard()