Exemplo n.º 1
0
 internal Blob(ObjectDatabase objectDatabase, ObjectId objectId, NativeStream stream)
     : this(objectDatabase, objectId)
 {
     this.size    = (int)stream.Length;
     this.content = Marshal.AllocHGlobal(this.size);
     stream.Read(this.content, this.size);
 }
Exemplo n.º 2
0
 /// <inheritdoc/>
 public override void Serialize(IntPtr memory, int count)
 {
     NativeStream.Read(memory, count);
 }