Пример #1
0
		public override java.nio.FloatBuffer duplicate()
		{
			java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());
			java.nio.FloatToByteBufferAdapter buf = new java.nio.FloatToByteBufferAdapter(bb);
			buf._limit = _limit;
			buf._position = _position;
			buf._mark = _mark;
			return buf;
		}
Пример #2
0
 public override java.nio.FloatBuffer duplicate()
 {
     java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());
     java.nio.FloatToByteBufferAdapter buf = new java.nio.FloatToByteBufferAdapter(bb);
     buf._limit    = _limit;
     buf._position = _position;
     buf._mark     = _mark;
     return(buf);
 }
Пример #3
0
 public override java.nio.FloatBuffer slice()
 {
     byteBuffer.limit(_limit * libcore.io.SizeOf.FLOAT);
     byteBuffer.position(_position * libcore.io.SizeOf.FLOAT);
     java.nio.ByteBuffer  bb     = byteBuffer.slice().order(byteBuffer.order());
     java.nio.FloatBuffer result = new java.nio.FloatToByteBufferAdapter(bb);
     byteBuffer.clear();
     return(result);
 }
Пример #4
0
		public override java.nio.FloatBuffer asReadOnlyBuffer()
		{
			java.nio.FloatToByteBufferAdapter buf = new java.nio.FloatToByteBufferAdapter(byteBuffer
				.asReadOnlyBuffer());
			buf._limit = _limit;
			buf._position = _position;
			buf._mark = _mark;
			buf.byteBuffer._order = byteBuffer._order;
			return buf;
		}
Пример #5
0
 public override java.nio.FloatBuffer asReadOnlyBuffer()
 {
     java.nio.FloatToByteBufferAdapter buf = new java.nio.FloatToByteBufferAdapter(byteBuffer
                                                                                   .asReadOnlyBuffer());
     buf._limit            = _limit;
     buf._position         = _position;
     buf._mark             = _mark;
     buf.byteBuffer._order = byteBuffer._order;
     return(buf);
 }
Пример #6
0
		public override java.nio.FloatBuffer slice()
		{
			byteBuffer.limit(_limit * libcore.io.SizeOf.FLOAT);
			byteBuffer.position(_position * libcore.io.SizeOf.FLOAT);
			java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());
			java.nio.FloatBuffer result = new java.nio.FloatToByteBufferAdapter(bb);
			byteBuffer.clear();
			return result;
		}