Пример #1
0
 internal static java.nio.ReadOnlyHeapByteBuffer copy(java.nio.HeapByteBuffer other
                                                      , int markOfOther)
 {
     java.nio.ReadOnlyHeapByteBuffer buf = new java.nio.ReadOnlyHeapByteBuffer(other.backingArray
                                                                               , other.capacity(), other.offset);
     buf._limit    = other._limit;
     buf._position = other.position();
     buf._mark     = markOfOther;
     return(buf);
 }
Пример #2
0
		internal static java.nio.ReadOnlyHeapByteBuffer copy(java.nio.HeapByteBuffer other
			, int markOfOther)
		{
			java.nio.ReadOnlyHeapByteBuffer buf = new java.nio.ReadOnlyHeapByteBuffer(other.backingArray
				, other.capacity(), other.offset);
			buf._limit = other._limit;
			buf._position = other.position();
			buf._mark = markOfOther;
			return buf;
		}