ByteArrayData
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Description
Implements
ByteArrayData
implements the following interfaces:
Constructors
Parameters:
internal: byte[]
Type: byte[]
Operators
Parameters:
key: string
Type: string
- The key to get
Return Type:
IData
Members
Returns: this data as a bool
Return Type:
bool
Return Type:
bool
Returns: this data as a byte
Return Type:
byte
Return Type:
byte
Returns: this data as a double
Return Type:
double
Return Type:
double
Returns: this data as a float
Return Type:
float
Return Type:
float
Returns: this data as an int
Return Type:
int
Return Type:
int
Returns: this data as a long
Return Type:
long
Return Type:
long
Returns: this data as a short
Return Type:
short
Return Type:
short
E.G println(("hello" as IData).asString())
prints "hello"
Returns: The escaped string version of this IData.
Return Type:
string
E.G println(("hello" as IData).getAsString())
prints hello
Returns: The literal string version of this IData.
Return Type:
string
E.G println(("hello" as IData).getAsString())
prints hello
Return Type:
string
Returns: the intenral ID of this data.
Return Type:
byte
Return Type:
bool
Returns: True if empty.
Return Type:
bool
Return Type:
Set<string>
Returns: The keys of this IData.
Return Type:
Set<string>
This attempts to give the most accurate type for the given members, for example, if all the members are bytes, then it returns a ByteArrayData.
However if the types are mixed or do not have a *ArrayData version, then a ListData is returned.
Returns: A list of the given members.
Return Type:
IData
Parameters:
key: string
Type: string
- The key to remove.