Initial commit
This commit is contained in:
1 parent
ee9615239e
commit
16feac691f
4093 files changed
+1030491
No files matched your search
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user