_ DATA = p_sprite.getdata () put "... data: "& _ Data & Return BA = new (# bytearray) BA = bytearray (" 0000 "& _ DATA) -- padding 4 bytes .. put "... bytearray: "& Ba & Return
-- Readstring, the first 4 bytes store the length of. CHS = ba. readstring (getsystemcharset () put "... readstring:" & CHS & Return
--------------------------------------------------------------------------------
Bytearray
Is a built-in media type. This type of memberref has only one attribute, namely. bytearray.
OPERATOR:
1. subscripts can be used for access.
2. String (BA) can be directly converted)
Attribute
Bytesremaining -- (RO) endianlength (byte array) -- (RO)
Position (byte array)
Method
Bytearraybytearray (STR) bytes (byte array) readrawstringwriterawstringcompress () uncompress ()
Tohexstring
--------------------------------------------------------------------------------
_ System .*
Getinstalledcharsets ()
Getsystemcharset ()
Ischarsetinstalled ()