| Package | system |
| Class | public class ByteArrays |
| Inheritance | ByteArrays Object |
| Method | Defined By | ||
|---|---|---|---|
clone(byteArray:ByteArray):ByteArray [static]
Returns a shallow copy of the specified ByteArray object. | ByteArrays | ||
copy(from:ByteArray, fromOffset:int, to:ByteArray, toOffset:int, length:int):void [static]
This function can copy a ByteArray in a other ByteArray. | ByteArrays | ||
equals(first:ByteArray, second:ByteArray):Boolean [static]
Indicates if two passed-in ByteArray objects are equal. | ByteArrays | ||
| clone | () | method |
public static function clone(byteArray:ByteArray):ByteArrayReturns a shallow copy of the specified ByteArray object. The cloned ByteArray contains the same bytes and the current position is the same as the original. The current position of the original ByteArray is not changed.
Parameters
byteArray:ByteArray — the ByteArray to be cloned.
|
ByteArray — A shallow copy of the specified ByteArray object.
|
| copy | () | method |
public static function copy(from:ByteArray, fromOffset:int, to:ByteArray, toOffset:int, length:int):voidThis function can copy a ByteArray in a other ByteArray.
Parameters
from:ByteArray — The ByteArray to copy with the specified offset.
| |
fromOffset:int — A zero-based index indicating the position into the array to begin the copy.
| |
to:ByteArray — The destination ByteArray to copy all bytes in the from ByteArray.
| |
toOffset:int — A zero-based index indicating the position into the array to begin the insert of the from ByteArray.
| |
length:int — An unsigned integer indicating how far into the buffer to write.
|
| equals | () | method |
public static function equals(first:ByteArray, second:ByteArray):BooleanIndicates if two passed-in ByteArray objects are equal.
Two ByteArray objects are considered equal if and only if all bytes they contain are equal and in the same order.
Parameters
first:ByteArray — The first ByteArray to be compared.
| |
second:ByteArray — The second ByteArray to be compared.
|
Boolean — true if the ByteArray object are equal, false otherwise.
|