You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
359 B
C#
16 lines
359 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using System.IO;
|
|
using System;
|
|
|
|
public class BinaryReaderMac : BinaryReader {
|
|
public BinaryReaderMac(Stream stream) : base(stream) { }
|
|
|
|
public override ushort ReadUInt16() {
|
|
var data = base.ReadBytes(2);
|
|
Array.Reverse(data);
|
|
return BitConverter.ToUInt16(data, 0);
|
|
}
|
|
}
|