public override java.nio.ShortBuffer duplicate() { java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order()); java.nio.ShortToByteBufferAdapter buf = new java.nio.ShortToByteBufferAdapter(bb); buf._limit = _limit; buf._position = _position; buf._mark = _mark; return(buf); }
public override java.nio.ShortBuffer slice() { byteBuffer.limit(_limit * libcore.io.SizeOf.SHORT); byteBuffer.position(_position * libcore.io.SizeOf.SHORT); java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order()); java.nio.ShortBuffer result = new java.nio.ShortToByteBufferAdapter(bb); byteBuffer.clear(); return(result); }
public override java.nio.ShortBuffer duplicate() { java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order()); java.nio.ShortToByteBufferAdapter buf = new java.nio.ShortToByteBufferAdapter(bb); buf._limit = _limit; buf._position = _position; buf._mark = _mark; return buf; }
public override java.nio.ShortBuffer asReadOnlyBuffer() { java.nio.ShortToByteBufferAdapter buf = new java.nio.ShortToByteBufferAdapter(byteBuffer .asReadOnlyBuffer()); buf._limit = _limit; buf._position = _position; buf._mark = _mark; buf.byteBuffer._order = byteBuffer._order; return(buf); }
public override java.nio.ShortBuffer asReadOnlyBuffer() { java.nio.ShortToByteBufferAdapter buf = new java.nio.ShortToByteBufferAdapter(byteBuffer .asReadOnlyBuffer()); buf._limit = _limit; buf._position = _position; buf._mark = _mark; buf.byteBuffer._order = byteBuffer._order; return buf; }
public override java.nio.ShortBuffer slice() { byteBuffer.limit(_limit * libcore.io.SizeOf.SHORT); byteBuffer.position(_position * libcore.io.SizeOf.SHORT); java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order()); java.nio.ShortBuffer result = new java.nio.ShortToByteBufferAdapter(bb); byteBuffer.clear(); return result; }