示例#1
0
 public override ByteBuf SetBytes(int index, ByteBuf src, int srcIndex, int length)
 {
     CheckSrcIndex(index, length, srcIndex, src.Capacity);
     // avoid check for memory address
     if (src.HasArray())
     {
         SetBytes(index, src.Array(), src.ArrayOffset() + srcIndex, length);
     }
     else
     {
         src.GetBytes(srcIndex, _array, index, length);
     }
     return(this);
 }
示例#2
0
 public override sbyte[] Array()
 {
     return(_buffer.Array());
 }