Exemplo n.º 1
0
        private static void UnPackDigests(HeaderBuffer headerBytes, int numItems, out uint?[] digests)
        {
            var digestsDefined = headerBytes.ReadBoolFlagsDefaultTrue(numItems);

            digests = new uint?[numItems];
            for (int i = 0; i < numItems; i++)
            {
                if (digestsDefined[i])
                {
                    digests[i] = headerBytes.ReadUInt32();
                }
            }
        }
 private static void UnPackDigests(HeaderBuffer headerBytes, int numItems, out uint?[] digests)
 {
     var digestsDefined = headerBytes.ReadBoolFlagsDefaultTrue(numItems);
     digests = new uint?[numItems];
     for (int i = 0; i < numItems; i++)
     {
         if (digestsDefined[i])
         {
             digests[i] = headerBytes.ReadUInt32();
         }
     }
 }