Logo Search packages:      
Sourcecode: cacao-oj6 version File versions

abstract LongBuffer java::nio::LongBuffer::asReadOnlyBuffer (  )  [pure virtual]

Creates a new, read-only long buffer that shares this buffer's content.

The content of the new buffer will be that of this buffer. Changes to this buffer's content will be visible in the new buffer; the new buffer itself, however, will be read-only and will not allow the shared content to be modified. The two buffers' position, limit, and mark values will be independent.

The new buffer's capacity, limit, position, and mark values will be identical to those of this buffer.

If this buffer is itself read-only then this method behaves in exactly the same way as the duplicate method.

The new, read-only long buffer

Implemented in java::nio::HeapLongBuffer, and java::nio::HeapLongBufferR.

Generated by  Doxygen 1.6.0   Back to index