Terraria ModLoader  0.10.1.5
A framework for Terraria mods
Terraria.ModLoader.IO.BigEndianWriter Class Reference
+ Inheritance diagram for Terraria.ModLoader.IO.BigEndianWriter:
+ Collaboration diagram for Terraria.ModLoader.IO.BigEndianWriter:

Public Member Functions

 BigEndianWriter (Stream output)
 
override void Write (short value)
 
override void Write (ushort value)
 
override void Write (int value)
 
override void Write (uint value)
 
override void Write (long value)
 
override void Write (ulong value)
 
override void Write (float value)
 
override void Write (double value)
 

Private Member Functions

void WriteBigEndian (byte[] bytes)
 

Detailed Description

Definition at line 7 of file BigEndian.cs.

Constructor & Destructor Documentation

Terraria.ModLoader.IO.BigEndianWriter.BigEndianWriter ( Stream  output)

Definition at line 9 of file BigEndian.cs.

9 : base(output) { }

Member Function Documentation

override void Terraria.ModLoader.IO.BigEndianWriter.Write ( short  value)

Definition at line 18 of file BigEndian.cs.

18 { WriteBigEndian(BitConverter.GetBytes(value)); }
void WriteBigEndian(byte[] bytes)
Definition: BigEndian.cs:11
override void Terraria.ModLoader.IO.BigEndianWriter.Write ( ushort  value)

Definition at line 19 of file BigEndian.cs.

19 { WriteBigEndian(BitConverter.GetBytes(value)); }
void WriteBigEndian(byte[] bytes)
Definition: BigEndian.cs:11
override void Terraria.ModLoader.IO.BigEndianWriter.Write ( int  value)

Definition at line 20 of file BigEndian.cs.

20 { WriteBigEndian(BitConverter.GetBytes(value)); }
void WriteBigEndian(byte[] bytes)
Definition: BigEndian.cs:11
override void Terraria.ModLoader.IO.BigEndianWriter.Write ( uint  value)

Definition at line 21 of file BigEndian.cs.

21 { WriteBigEndian(BitConverter.GetBytes(value)); }
void WriteBigEndian(byte[] bytes)
Definition: BigEndian.cs:11
override void Terraria.ModLoader.IO.BigEndianWriter.Write ( long  value)

Definition at line 22 of file BigEndian.cs.

22 { WriteBigEndian(BitConverter.GetBytes(value)); }
void WriteBigEndian(byte[] bytes)
Definition: BigEndian.cs:11
override void Terraria.ModLoader.IO.BigEndianWriter.Write ( ulong  value)

Definition at line 23 of file BigEndian.cs.

23 { WriteBigEndian(BitConverter.GetBytes(value)); }
void WriteBigEndian(byte[] bytes)
Definition: BigEndian.cs:11
override void Terraria.ModLoader.IO.BigEndianWriter.Write ( float  value)

Definition at line 24 of file BigEndian.cs.

24 { WriteBigEndian(BitConverter.GetBytes(value)); }
void WriteBigEndian(byte[] bytes)
Definition: BigEndian.cs:11
override void Terraria.ModLoader.IO.BigEndianWriter.Write ( double  value)

Definition at line 25 of file BigEndian.cs.

25 { WriteBigEndian(BitConverter.GetBytes(value)); }
void WriteBigEndian(byte[] bytes)
Definition: BigEndian.cs:11
void Terraria.ModLoader.IO.BigEndianWriter.WriteBigEndian ( byte[]  bytes)
private

Definition at line 11 of file BigEndian.cs.

11  {
12  if (BitConverter.IsLittleEndian)
13  bytes = bytes.Reverse().ToArray();
14 
15  Write(bytes);
16  }
override void Write(short value)
Definition: BigEndian.cs:18