Пример #1
0
 public static int GetFileNameLength(byte[] header)
 {
     byte[] fileNameLength = new byte[Constants.IntBitConverterLength];
     Array.Copy(header, Constants.IntBitConverterLength, fileNameLength, destinationIndex: 0, fileNameLength.Length);
     return(BitConversion.ToInt32(fileNameLength));
 }
Пример #2
0
 public static int GetLastChunkLength(byte[] header)
 {
     byte[] lastChunkLength = new byte[Constants.IntBitConverterLength];
     Array.Copy(header, lastChunkLength, lastChunkLength.Length);
     return(BitConversion.ToInt32(lastChunkLength));
 }