mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			511 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			511 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.Buffers.Binary;
 | 
						|
using System.IO;
 | 
						|
 | 
						|
namespace DvdLib
 | 
						|
{
 | 
						|
    public class BigEndianBinaryReader : BinaryReader
 | 
						|
    {
 | 
						|
        public BigEndianBinaryReader(Stream input)
 | 
						|
            : base(input)
 | 
						|
        {
 | 
						|
        }
 | 
						|
 | 
						|
        public override ushort ReadUInt16()
 | 
						|
        {
 | 
						|
            return BinaryPrimitives.ReadUInt16BigEndian(base.ReadBytes(2));
 | 
						|
        }
 | 
						|
 | 
						|
        public override uint ReadUInt32()
 | 
						|
        {
 | 
						|
            return BinaryPrimitives.ReadUInt32BigEndian(base.ReadBytes(4));
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |