Пример #1
0
 private void initialize(IceInternal.Instance instance, byte[] data, EncodingVersion v, bool copyData)
 {
     if (copyData)
     {
         _is = new IceInternal.BasicStream(instance, v);
         _is.resize(data.Length, true);
         IceInternal.Buffer buf = _is.getBuffer();
         buf.b.position(0);
         buf.b.put(data);
         buf.b.position(0);
     }
     else
     {
         _is = new IceInternal.BasicStream(instance, v, data);
     }
     _is.closure(this);
 }