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)); }
public static int GetLastChunkLength(byte[] header) { byte[] lastChunkLength = new byte[Constants.IntBitConverterLength]; Array.Copy(header, lastChunkLength, lastChunkLength.Length); return(BitConversion.ToInt32(lastChunkLength)); }