class-description
NEWS
COMMUNITY
STORE
TUTORIALS
SIGN UP
LOGIN
LOGOUT
ROKOJORI
NEWSLETTER
SIGN UP
LOGIN
LOGOUT
NEWS
COMMUNITY
STORE
TUTORIALS
TOGGLE FULLSCREEN
VOLLBILD AN/AUS
Object
RefCounted
PackedDataContainerRef
An internal class used by
PackedDataContainer
to pack nested arrays and dictionaries.
When packing nested containers using
PackedDataContainer
, they are recursively packed into
PackedDataContainerRef
(only applies to
Array
and
Dictionary
). Their data can be retrieved the same way as from
PackedDataContainer
.
var packed = PackedDataContainer.new() packed.pack([1, 2, 3, ["nested1", "nested2"], 4, 5, 6]) for element in packed: if element is PackedDataContainerRef: for subelement in element: print("::", subelement) else: print(element)
Prints:
[codeblock lang=text]
1
2
3
::nested1
::nested2
4
5
6
[/codeblock]
int
size
<>
()
:
int
Returns the size of the packed container (see [method Array.size] and [method Dictionary.size]).
All social media brands are registrated trademarks and belong to their respective owners.
CONTACT
IMPRINT
TERMS OF USE
PRIVACY
© ROKOROJI ® 2021
rokojori.com
CONTACT
IMPRINT
TERMS OF USE
PRIVACY
© ROKOROJI ® 2021
rokojori.com
We are using cookies on this site.
Read more...
Wir benutzen Cookies auf dieser Seite.
Mehr lesen...