EsUnicodeStorage
Description
Internal class that the virtual machine has direct knowledge of. This is a specialized kind of byte array that can classify its content to speed up access from owning objects.
The format of the bytes is defined in the ABI of the UnicodeSupport module and should not be relied upon in the image.
Class Methods
new
Answer a new empty instance of the unicode storage byte array
Answers:
<EsUnicodeStorage>
new:
Answer a new instance of the unicode storage byte array with
@anInteger number of bytes allocated.
Arguments:
anInteger - <Integer> number of bytes
Answers:
<EsUnicodeStorage>
Instance Methods
=
Answer a Boolean which is true if the receiver is equal to
@aUnicodeStorageObject, otherwise answer false.
Arguments:
aUnicodeStorageObject - <EsUnicodeStorage>
Answers:
<Boolean>
asByteArray
Answer a ByteArray containing all the elements of the
receiver.
isShared
Copy-On-Write: Answer true if the storage was shared with
other <UnicodeString> objects, false otherwise.
Impl Detail: Storage objects stay shared until a mutation is made.
The storage object is NOT notified when only one reference is left
and therefore will still answer true to #isShared even if there is only
one UnicodeString reference left.
Answers:
<Boolean>
Last modified date: 01/18/2023