Example #1
0
        public override void Write(XdrDataWriter writer)
        {
            writer.Write((int)this.Status);

            if (Status == Nfs3Status.Ok)
            {
                ObjectHandle.Write(writer);

                writer.Write(ObjectAttributes != null);

                if (ObjectAttributes != null)
                {
                    ObjectAttributes.Write(writer);
                }
            }

            writer.Write(DirAttributes != null);

            if (DirAttributes != null)
            {
                DirAttributes.Write(writer);
            }
        }
        public override void Write(XdrDataWriter writer)
        {
            writer.Write((int)Status);

            writer.Write(DirAttributes != null);
            if (DirAttributes != null)
            {
                DirAttributes.Write(writer);
            }

            if (Status == Nfs3Status.Ok)
            {
                writer.Write(CookieVerifier);

                foreach (var entry in DirEntries)
                {
                    writer.Write(true);
                    entry.Write(writer);
                }

                writer.Write(false);
                writer.Write(Eof);
            }
        }