HttpServerBoxed 0.0.11 alpha
A simple http server for C# and .NET
|
A class to simplify the construction of byte arrays. More...
Public Member Functions | |
void | Append (Byte b) |
Append a byte to the byte array. | |
void | Append (byte[] b) |
Append a byte array to the byte array. | |
void | Append (ushort s) |
Append a ushort (aka uint16) to the byte array. | |
void | Append (uint i) |
Append a uint (aka uint32) to the byte array. | |
void | Append (ulong l) |
Append a ulong (aka uint64) to the byte array. | |
void | Insert (int position, byte b) |
Insert a byte at a specific position in the byte array. | |
void | Insert (int position, byte[] b) |
Insert a byte array at a specific position in the byte array. | |
byte | GetByte (int position) |
Gets the byte at a specific position in the byte array. | |
byte[] | GetBytes (int position, int size) |
Get a byte array from a specific position in the byte array. | |
byte[] | Build () |
Build the byte array. | |
A class to simplify the construction of byte arrays.
Definition at line 6 of file DataWriter.cs.
HSB.DataWriter.DataWriter | ( | ) |
Definition at line 9 of file DataWriter.cs.
void HSB.DataWriter.Append | ( | Byte | b | ) |
Append a byte to the byte array.
b |
Definition at line 16 of file DataWriter.cs.
void HSB.DataWriter.Append | ( | byte[] | b | ) |
Append a byte array to the byte array.
b |
Definition at line 23 of file DataWriter.cs.
void HSB.DataWriter.Append | ( | uint | i | ) |
Append a uint (aka uint32) to the byte array.
i |
Definition at line 37 of file DataWriter.cs.
void HSB.DataWriter.Append | ( | ulong | l | ) |
Append a ulong (aka uint64) to the byte array.
Definition at line 43 of file DataWriter.cs.
void HSB.DataWriter.Append | ( | ushort | s | ) |
Append a ushort (aka uint16) to the byte array.
s | Ushort (aka uint16) |
Definition at line 30 of file DataWriter.cs.
byte[] HSB.DataWriter.Build | ( | ) |
byte HSB.DataWriter.GetByte | ( | int | position | ) |
Gets the byte at a specific position in the byte array.
position |
Definition at line 63 of file DataWriter.cs.
byte[] HSB.DataWriter.GetBytes | ( | int | position, |
int | size | ||
) |
Get a byte array from a specific position in the byte array.
Definition at line 68 of file DataWriter.cs.
void HSB.DataWriter.Insert | ( | int | position, |
byte | b | ||
) |
Insert a byte at a specific position in the byte array.
Definition at line 49 of file DataWriter.cs.
void HSB.DataWriter.Insert | ( | int | position, |
byte[] | b | ||
) |
Insert a byte array at a specific position in the byte array.
Definition at line 55 of file DataWriter.cs.