Home | History | Annotate | Download | only in io

Lines Matching refs:length

29     private final int length;
34 NioBufferIterator(MemoryMappedFile file, long address, int length, boolean swap) {
40 if (length < 0) {
41 throw new IllegalArgumentException("length < 0");
44 if (Long.compareUnsigned(address, MAX_VALID_ADDRESS - length) > 0) {
46 "length " + length + " would overflow 64-bit address space");
48 this.length = length;
67 checkDstBounds(dstOffset, dst.length, byteCount);
69 checkReadBounds(position, length, byteCount);
76 checkReadBounds(position, length, 1);
84 checkReadBounds(position, length, SizeOf.INT);
91 checkDstBounds(dstOffset, dst.length, intCount);
94 checkReadBounds(position, length, byteCount);
101 checkReadBounds(position, length, SizeOf.SHORT);
107 private static void checkReadBounds(int position, int length, int byteCount) {
112 // Use of int here relies on length being an int <= Integer.MAX_VALUE.
114 if (finalReadPos < 0 || finalReadPos > length) {
117 + ", length=" + length);
127 // be because it's an array length.
131 "Write outside range: dst.length=" + dstLength + ", offset="