public static async Task <uint> ReadUInt32(this Stream stream) { return(LittleEndianConverter.ConvertToUInt32(await stream.ReadBytes(4))); }
public static uint ReadLittleEndianUInt32(this byte[] bytes, int offset) { return(LittleEndianConverter.ConvertToUInt32(bytes.CopyBytes(offset, 4))); }