equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
421 |
421 |
422 protected final void setByteBufferWithInfo(ByteBufferWithInfo bbwi) { |
422 protected final void setByteBufferWithInfo(ByteBufferWithInfo bbwi) { |
423 impl.setByteBufferWithInfo(bbwi); |
423 impl.setByteBufferWithInfo(bbwi); |
424 } |
424 } |
425 |
425 |
|
426 /** |
|
427 * return true if our ByteBuffer is sharing/equal to bb |
|
428 */ |
|
429 protected final boolean isSharing(ByteBuffer bb) { |
|
430 return (getByteBuffer() == bb); |
|
431 } |
|
432 |
426 public final int getBufferLength() { |
433 public final int getBufferLength() { |
427 return impl.getBufferLength(); |
434 return impl.getBufferLength(); |
428 } |
435 } |
429 |
436 |
430 protected final void setBufferLength(int value) { |
437 protected final void setBufferLength(int value) { |