equal
deleted
inserted
replaced
214 |
214 |
215 public $Type$Buffer put($Type$Buffer src) { |
215 public $Type$Buffer put($Type$Buffer src) { |
216 #if[rw] |
216 #if[rw] |
217 if (src instanceof Heap$Type$Buffer) { |
217 if (src instanceof Heap$Type$Buffer) { |
218 if (src == this) |
218 if (src == this) |
219 throw new IllegalArgumentException(); |
219 throw createSameBufferException(); |
220 Heap$Type$Buffer sb = (Heap$Type$Buffer)src; |
220 Heap$Type$Buffer sb = (Heap$Type$Buffer)src; |
221 int n = sb.remaining(); |
221 int n = sb.remaining(); |
222 if (n > remaining()) |
222 if (n > remaining()) |
223 throw new BufferOverflowException(); |
223 throw new BufferOverflowException(); |
224 System.arraycopy(sb.hb, sb.ix(sb.position()), |
224 System.arraycopy(sb.hb, sb.ix(sb.position()), |