Exemplo n.º 1
0
        BYTE[] EndHeader;                    // String to end header.

        public static IMAGE_ARCHIVE_MEMBER_HEADER LoadFrom(BinaryReader r)
        {
            IMAGE_ARCHIVE_MEMBER_HEADER h = new IMAGE_ARCHIVE_MEMBER_HEADER();

            h.Name      = r.ReadBytes(h.Name.Length);
            h.Date      = r.ReadBytes(h.Date.Length);
            h.UserID    = r.ReadBytes(h.UserID.Length);
            h.GroupID   = r.ReadBytes(h.GroupID.Length);
            h.Mode      = r.ReadBytes(h.Mode.Length);
            h.Size      = r.ReadBytes(h.Size.Length);
            h.EndHeader = r.ReadBytes(h.EndHeader.Length);
            return(h);
        }
Exemplo n.º 2
0
        BYTE[] UserID; // File member user id - decimal.

        #endregion Fields

        #region Methods

        public static IMAGE_ARCHIVE_MEMBER_HEADER LoadFrom(BinaryReader r)
        {
            IMAGE_ARCHIVE_MEMBER_HEADER h = new IMAGE_ARCHIVE_MEMBER_HEADER();
            h.Name = r.ReadBytes(h.Name.Length);
            h.Date = r.ReadBytes(h.Date.Length);
            h.UserID = r.ReadBytes(h.UserID.Length);
            h.GroupID = r.ReadBytes(h.GroupID.Length);
            h.Mode = r.ReadBytes(h.Mode.Length);
            h.Size = r.ReadBytes(h.Size.Length);
            h.EndHeader = r.ReadBytes(h.EndHeader.Length);
            return h;
        }