Exemple #1
0
 public override java.nio.IntBuffer duplicate()
 {
     java.nio.ByteBuffer             bb  = byteBuffer.duplicate().order(byteBuffer.order());
     java.nio.IntToByteBufferAdapter buf = new java.nio.IntToByteBufferAdapter(bb);
     buf._limit    = _limit;
     buf._position = _position;
     buf._mark     = _mark;
     return(buf);
 }
Exemple #2
0
 public override java.nio.IntBuffer slice()
 {
     byteBuffer.limit(_limit * libcore.io.SizeOf.INT);
     byteBuffer.position(_position * libcore.io.SizeOf.INT);
     java.nio.ByteBuffer bb     = byteBuffer.slice().order(byteBuffer.order());
     java.nio.IntBuffer  result = new java.nio.IntToByteBufferAdapter(bb);
     byteBuffer.clear();
     return(result);
 }
		public override java.nio.IntBuffer duplicate()
		{
			java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());
			java.nio.IntToByteBufferAdapter buf = new java.nio.IntToByteBufferAdapter(bb);
			buf._limit = _limit;
			buf._position = _position;
			buf._mark = _mark;
			return buf;
		}
Exemple #4
0
 public override java.nio.IntBuffer asReadOnlyBuffer()
 {
     java.nio.IntToByteBufferAdapter buf = new java.nio.IntToByteBufferAdapter(byteBuffer
                                                                               .asReadOnlyBuffer());
     buf._limit            = _limit;
     buf._position         = _position;
     buf._mark             = _mark;
     buf.byteBuffer._order = byteBuffer._order;
     return(buf);
 }
		public override java.nio.IntBuffer asReadOnlyBuffer()
		{
			java.nio.IntToByteBufferAdapter buf = new java.nio.IntToByteBufferAdapter(byteBuffer
				.asReadOnlyBuffer());
			buf._limit = _limit;
			buf._position = _position;
			buf._mark = _mark;
			buf.byteBuffer._order = byteBuffer._order;
			return buf;
		}
		public override java.nio.IntBuffer slice()
		{
			byteBuffer.limit(_limit * libcore.io.SizeOf.INT);
			byteBuffer.position(_position * libcore.io.SizeOf.INT);
			java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());
			java.nio.IntBuffer result = new java.nio.IntToByteBufferAdapter(bb);
			byteBuffer.clear();
			return result;
		}