private void ReadSignatureData(RpmHeader header, List<RpmSignatureIndex> indices)
 {
     byte[] data = new byte[header.NumData];
     int bRead = this.inputStream.Read (data, 0, data.Length);
     this.Count (bRead);
     if (bRead != data.Length)
     {
         throw new IOException ("Invalid header");
     }
     foreach (RpmSignatureIndex r in indices)
     {
         switch (r.Tag)
         {
         case RpmSignatureTag.RPMSIGTAG_PAYLOADSIZE:
             this.payloadSize = UtArrays.LeerInt32BE (data, r.Offset);
             break;
         default:
             break;
         }
     }
 }
        private void ReadHeaderData(RpmHeader header, List<RpmHeaderIndex> indices)
        {
            byte[] data = new byte[header.NumData];
            int bRead = this.inputStream.Read (data, 0, data.Length);
            this.Count (bRead);
            if (bRead != data.Length)
            {
                throw new IOException ("Invalid header");
            }
            foreach (RpmHeaderIndex r in indices)
            {

                switch (r.Tag)
                {
                case RpmHeaderTag.RPMTAG_PAYLOADFORMAT:
                    this.payloadFormat = UtArrays.LeerTexto (data, r.Offset);
                    break;
                case RpmHeaderTag.RPMTAG_PAYLOADCOMPRESSOR:
                    this.payloadCompressor = UtArrays.LeerTexto (data, r.Offset);
                    break;
                default:
                    break;
                }
            }
        }