In a single atomic operation, compares this byte array's length with a provided value and, if they match, changes the length of this byte array.
Clears the contents of the byte array and resets the length and position properties to 0. Calling this method explicitly frees up the memory used by the ByteArray instance.
Compresses the byte array. The entire byte array is compressed. After the call, the length property of the ByteArray is set to the new length. The position property is set to the end of the byte array.
Compresses the byte array using the deflate compression algorithm. The entire byte array is compressed.
Decompresses the byte array using the deflate compression algorithm. The byte array must have been compressed using the same algorithm.
Reads a Boolean value from the byte stream. A single byte is read, and true is returned if the byte is nonzero, false otherwise.
Reads a signed byte from the byte stream.
Reads the number of data bytes, specified by the length parameter, from the byte stream. The bytes are read into the ByteArray object specified by the bytes parameter, and the bytes are written into the destination ByteArray starting at the position specified by offset.
Reads an IEEE 754 double-precision (64-bit) floating-point number from the byte stream.
Reads an IEEE 754 single-precision (32-bit) floating-point number from the byte stream.
Reads a signed 32-bit integer from the byte stream.
Reads a multibyte string of specified length from the byte stream using the specified character set.
Reads an object from the byte array, encoded in AMF serialized format.
Reads a signed 16-bit integer from the byte stream.
Reads a UTF-8 string from the byte stream. The string is assumed to be prefixed with an unsigned short indicating the length in bytes.
Reads a sequence of UTF-8 bytes specified by the length parameter from the byte stream and returns a string.
Reads an unsigned byte from the byte stream.
Reads an unsigned 32-bit integer from the byte stream.
Reads an unsigned 16-bit integer from the byte stream
Provides an overridable method for customizing the JSON encoding of values in an ByteArray object.
Converts the byte array to a string. If the data in the array begins with a Unicode byte order mark, the application will honor that mark when converting to a string. If System.useCodePage is set to true, the application will treat the data in the array as being in the current system code page when converting.
Decompresses the byte array. After the call, the length property of the ByteArray is set to the new length. The position property is set to 0.
Update position with number after use it
Writes a Boolean value.
Writes a byte to the byte stream.
Writes a sequence of length bytes from the specified byte array, bytes, starting offset(zero-based index) bytes into the byte stream.
Writes an IEEE 754 double-precision (64-bit) floating-point number to the byte stream.
Writes an IEEE 754 single-precision (32-bit) floating-point number to the byte stream.
Writes a 32-bit signed integer to the byte stream.
Writes a multibyte string to the byte stream using the specified character set.
Writes an object into the byte array in AMF serialized format.
Writes a 16-bit integer to the byte stream.
Writes a UTF-8 string to the byte stream.
Writes a UTF-8 string to the byte stream.
Writes a 8-bit unsigned integer to the byte stream.
Writes a 32-bit unsigned integer to the byte stream.
Writes a 16-bit unsigned integer to the byte stream.
Generated using TypeDoc
In a single atomic operation, compares an number value in this byte array with another number value and, if they match, swaps those bytes with another value.