Paket | mx.utils |
Klass | public class RPCUIDUtil |
Arv | RPCUIDUtil Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Metod | Definieras med | ||
---|---|---|---|
[statisk]
Generates a UID (unique identifier) based on ActionScript's
pseudo-random number generator and the current time. | RPCUIDUtil | ||
[statisk]
Converts a 128-bit UID encoded as a ByteArray to a String representation. | RPCUIDUtil | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
[statisk]
A utility method to check whether a String value represents a
correctly formatted UID value. | RPCUIDUtil | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
[statisk]
Converts a UID formatted String to a ByteArray. | RPCUIDUtil | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object |
createUID | () | metod |
public static function createUID():String
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Generates a UID (unique identifier) based on ActionScript's pseudo-random number generator and the current time.
The UID has the form
"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
where X is a hexadecimal digit (0-9, A-F).
This UID will not be truly globally unique; but it is the best we can do without player support for UID generation.
ReturnerarString — The newly-generated UID.
|
fromByteArray | () | metod |
public static function fromByteArray(ba:ByteArray):String
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Converts a 128-bit UID encoded as a ByteArray to a String representation. The format matches that generated by createUID. If a suitable ByteArray is not provided, null is returned.
Parametrar
ba:ByteArray — ByteArray 16 bytes in length representing a 128-bit UID.
|
String — String representation of the UID, or null if an invalid
ByteArray is provided.
|
isUID | () | metod |
public static function isUID(uid:String):Boolean
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
A utility method to check whether a String value represents a correctly formatted UID value. UID values are expected to be in the format generated by createUID(), implying that only capitalized A-F characters in addition to 0-9 digits are supported.
Parametrar
uid:String — The value to test whether it is formatted as a UID.
|
Boolean — Returns true if the value is formatted as a UID.
|
toByteArray | () | metod |
public static function toByteArray(uid:String):ByteArray
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Converts a UID formatted String to a ByteArray. The UID must be in the format generated by createUID, otherwise null is returned.
Parametrar
uid:String — representing a 128-bit UID
|
ByteArray — ByteArray 16 bytes in length representing the 128-bits of the
UID or null if the uid could not be converted.
|
Tue Jun 12 2018, 01:40 PM Z