[]
Create a String from a byte []. Optionally swap adjacent byte pairs. Intended to be used to create integer String representations allowing for endian translations.
public static string getString(byte[] bfr, int offset, int length, bool swap)
Type | Name | Description |
---|---|---|
byte[] | bfr | data array |
int | offset | start of data in array |
int | length | length of data in array |
bool | swap | swap adjacent bytes? |
Type | Description |
---|---|
string | String rep of data |