public ulong ReadUInt64()
        {
            var value = BitConverter.ToUInt64(_input, (int)_position);

            _position += 8;
            return(BytesSwapper.Swap(value));
        }
        public uint ReadUInt32()
        {
            UInt32 value = BitConverter.ToUInt32(_input, (int)_position);

            _position += 4;
            return(BytesSwapper.Swap(value));
        }
        public ushort ReadUInt16()
        {
            UInt16 value = BitConverter.ToUInt16(_input, (int)_position);

            _position += 2;
            return(BytesSwapper.Swap(value));
        }
        public short ReadInt16()
        {
            //TODO: nagaan of gebruik van readonlyspan op deze manier handig is
            //https://www.stevejgordon.co.uk/an-introduction-to-optimising-code-using-span-t
            ReadOnlySpan <byte> source = new ReadOnlySpan <byte>(_input, (int)_position, 4);
            Int16 adf   = BinaryPrimitives.ReadInt16BigEndian(source);
            Int16 value = BitConverter.ToInt16(_input, (int)_position);

            _position += 2;
            return(BytesSwapper.Swap(value));
        }
Exemple #5
0
 // Token: 0x0600005D RID: 93 RVA: 0x000029D6 File Offset: 0x00000BD6
 public override ulong ReadUInt64()
 {
     return(BytesSwapper.Swap(base.ReadUInt64()));
 }
Exemple #6
0
 // Token: 0x0600005B RID: 91 RVA: 0x000029BC File Offset: 0x00000BBC
 public override uint ReadUInt32()
 {
     return(BytesSwapper.Swap(base.ReadUInt32()));
 }
Exemple #7
0
 // Token: 0x06000059 RID: 89 RVA: 0x000029A2 File Offset: 0x00000BA2
 public override short ReadInt16()
 {
     return(BytesSwapper.Swap(base.ReadInt16()));
 }