change name

This commit is contained in:
ww-rm
2025-03-13 02:32:53 +08:00
parent c4863ee09b
commit c920471c0c

View File

@@ -73,14 +73,14 @@ namespace SpineViewer.Spine
/// </summary> /// </summary>
public abstract void JsonToBinary(string jsonPath, string binPath); public abstract void JsonToBinary(string jsonPath, string binPath);
protected class BinaryReader protected class SkeletonReader
{ {
protected byte[] buffer = new byte[32]; protected byte[] buffer = new byte[32];
protected byte[] bytesBigEndian = new byte[8]; protected byte[] bytesBigEndian = new byte[8];
public readonly List<string> StringTable = new(32); public readonly List<string> StringTable = new(32);
protected Stream input; protected Stream input;
public BinaryReader(Stream input) { this.input = input; } public SkeletonReader(Stream input) { this.input = input; }
public int Read() public int Read()
{ {
int val = input.ReadByte(); int val = input.ReadByte();
@@ -174,14 +174,14 @@ namespace SpineViewer.Spine
} }
} }
protected class BinaryWriter protected class SkeletonWriter
{ {
protected byte[] buffer = new byte[32]; protected byte[] buffer = new byte[32];
protected byte[] bytesBigEndian = new byte[8]; protected byte[] bytesBigEndian = new byte[8];
public readonly List<string> Strings = new(32); public readonly List<string> Strings = new(32);
protected Stream output; protected Stream output;
public BinaryWriter(Stream output) { this.output = output; } public SkeletonWriter(Stream output) { this.output = output; }
public void Write(int val) => output.WriteByte((byte)val); public void Write(int val) => output.WriteByte((byte)val);
public void WriteByte(byte val) => output.WriteByte(val); public void WriteByte(byte val) => output.WriteByte(val);
public void WriteUByte(byte val) => output.WriteByte(val); public void WriteUByte(byte val) => output.WriteByte(val);