equal
deleted
inserted
replaced
85 return new ByteBufferAs$Type$Buffer$RW$$BO$(bb, -1, 0, rem, rem, addr); |
85 return new ByteBufferAs$Type$Buffer$RW$$BO$(bb, -1, 0, rem, rem, addr); |
86 } |
86 } |
87 |
87 |
88 @Override |
88 @Override |
89 public $Type$Buffer slice(int index, int length) { |
89 public $Type$Buffer slice(int index, int length) { |
90 Objects.checkIndex(index, limit() + 1); |
90 Objects.checkFromIndexSize(index, length, limit()); |
91 Objects.checkIndex(length, limit() - index + 1); |
|
92 return new ByteBufferAs$Type$Buffer$RW$$BO$(bb, |
91 return new ByteBufferAs$Type$Buffer$RW$$BO$(bb, |
93 -1, |
92 -1, |
94 0, |
93 0, |
95 length, |
94 length, |
96 length, |
95 length, |