package hl
Available on hlinline new (v:Int)
address ():Int64
Returns the address value of the bytes. On 32 bit system the upper 32 bits will always be 0
blit (this:Bytes, pos:Int, src:Bytes, srcPos:Int):Void
compare (this:Bytes, pos:Int, bytes:Bytes, bytesPos:Int):Int
fill (this:Bytes, pos:Int, size:Int):Void
find (this:Bytes, pos:Int, size:Int, bytes:Bytes, bytesPos:Int):Int
inline getF32 (this:Bytes):F32
inline getF64 (this:Bytes):Float
inline getI32 (this:Bytes):Int
inline getUI16 (this:Bytes):Int
inline getUI8 (this:Bytes):Int
offset (this:Bytes):Bytes
Please note that you need to retain the original unoffset'ed Bytes so it does not get garbage collected, unless the pointer was not GC allocated.
parseFloat (this:Bytes, pos:Int):Float
parseInt (this:Bytes, pos:Int):Null<Int>
inline setF32 (this:Bytes, pos:Int):Void
inline setF64 (this:Bytes, pos:Int):Void
inline setI32 (this:Bytes, pos:Int):Void
inline setUI16 (this:Bytes, pos:Int):Void
inline setUI8 (this:Bytes, pos:Int):Int
sortF64 (this:Bytes, pos:Int, length:Int):Void
sortI32 (this:Bytes, pos:Int, length:Int):Void
sub (this:Bytes, pos:Int):Bytes
subtract (this:Bytes):Int
Returns an offset between the two pointers. This might overflow in 64 bits if the addresses of the two pointers differs by more than 4GB
ucs2Length (this:Bytes):Int
utf16ToUtf8 (this:Bytes, bytePos:Int):Bytes
utf8ToUtf16 (this:Bytes, bytePos:Int):Bytes
static inline new (v:Int)
static address ():Int64
Returns the address value of the bytes. On 32 bit system the upper 32 bits will always be 0
static blit (this:Bytes, pos:Int, src:Bytes, srcPos:Int):Void
static compare (this:Bytes, pos:Int, bytes:Bytes, bytesPos:Int):Int
static fill (this:Bytes, pos:Int, size:Int):Void
static find (this:Bytes, pos:Int, size:Int, bytes:Bytes, bytesPos:Int):Int
static inline fromAddress (h:Int64):Bytes
Creates an pointer at a given memory address (highly unsafe)
static inline fromAddress (h:Int64):Bytes
Creates an pointer at a given memory address (highly unsafe)
static inline fromBytes (bytes:Bytes):Bytes
static inline fromBytes (bytes:Bytes):Bytes
static fromValue (v:Dynamic, length:Ref<Int>):Bytes
static fromValue (v:Dynamic, length:Ref<Int>):Bytes
static inline getArray<T> (a:Array<T>):Bytes
Get the bytes reference from an array of basic types (no copy occurs)
static inline getArray<T> (a:Array<T>):Bytes
Get the bytes reference from an array of basic types (no copy occurs)
static inline getF32 (this:Bytes):F32
static inline getF64 (this:Bytes):Float
static inline getI32 (this:Bytes):Int
static inline getUI16 (this:Bytes):Int
static inline getUI8 (this:Bytes):Int
static offset (this:Bytes):Bytes
Please note that you need to retain the original unoffset'ed Bytes so it does not get garbage collected, unless the pointer was not GC allocated.
static parseFloat (this:Bytes, pos:Int):Float
static parseInt (this:Bytes, pos:Int):Null<Int>
static inline setF32 (this:Bytes, pos:Int):Void
static inline setF64 (this:Bytes, pos:Int):Void
static inline setI32 (this:Bytes, pos:Int):Void
static inline setUI16 (this:Bytes, pos:Int):Void
static inline setUI8 (this:Bytes, pos:Int):Int
static sortF64 (this:Bytes, pos:Int, length:Int):Void
static sortI32 (this:Bytes, pos:Int, length:Int):Void
static sub (this:Bytes, pos:Int):Bytes
static subtract (this:Bytes):Int
Returns an offset between the two pointers. This might overflow in 64 bits if the addresses of the two pointers differs by more than 4GB
static ucs2Length (this:Bytes):Int
static utf16ToUtf8 (this:Bytes, bytePos:Int):Bytes
static utf8ToUtf16 (this:Bytes, bytePos:Int):Bytes
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/hl/Bytes.html