Exemplo n.º 1
0
 internal static java.nio.ReadOnlyShortArrayBuffer copy(java.nio.ShortArrayBuffer
                                                        other, int markOfOther)
 {
     java.nio.ReadOnlyShortArrayBuffer buf = new java.nio.ReadOnlyShortArrayBuffer(other
                                                                                   .capacity(), other.backingArray, other.offset);
     buf._limit    = other._limit;
     buf._position = other.position();
     buf._mark     = markOfOther;
     return(buf);
 }
Exemplo n.º 2
0
		internal static java.nio.ReadOnlyShortArrayBuffer copy(java.nio.ShortArrayBuffer 
			other, int markOfOther)
		{
			java.nio.ReadOnlyShortArrayBuffer buf = new java.nio.ReadOnlyShortArrayBuffer(other
				.capacity(), other.backingArray, other.offset);
			buf._limit = other._limit;
			buf._position = other.position();
			buf._mark = markOfOther;
			return buf;
		}