public override void Write(XdrDataWriter writer) { writer.Write((int)Status); writer.Write(FileAttributes != null); if (FileAttributes != null) { FileAttributes.Write(writer); } if (Status == Nfs3Status.Ok) { writer.Write(Count); writer.Write(Eof); writer.WriteBuffer(Data); } }
public Nfs3WriteResult Write(Nfs3FileHandle handle, long position, byte[] buffer, int bufferOffset, int count) { MemoryStream ms = new MemoryStream(); XdrDataWriter writer = StartCallMessage(ms, _client.Credentials, 7); handle.Write(writer); writer.Write(position); writer.Write(count); writer.Write(0); // UNSTABLE writer.WriteBuffer(buffer, bufferOffset, count); RpcReply reply = DoSend(ms); if (reply.Header.IsSuccess) { return(new Nfs3WriteResult(reply.BodyReader)); } throw new RpcException(reply.Header.ReplyHeader); }
internal void Write(XdrDataWriter writer) { writer.WriteBuffer(Value); }
public void Write(XdrDataWriter writer) { writer.Write((int)_flavour); writer.WriteBuffer(_body); }
public void Write(XdrDataWriter writer) { writer.Write((int)_flavour); writer.WriteBuffer(_body); }