Hi there...
Is that the best way (fastest) to count bytes of an object (List) ?
ps: I am asking... because is somehow silly to create a "bb() as byte" - that will eat some memory - to count something else...
Is that the best way (fastest) to count bytes of an object (List) ?
Dim list1 As List
list1.Initialize
Dim Ser As B4XSerializator
Dim map1 As Map 'add some things into list....
map1.Initialize
map1.Put("HELP","123123")
list1.Add("test1")
list1.Add(map1)
Dim bb() As Byte= Ser.ConvertObjectToBytes(list1)
Log(bb.Length)
ps: I am asking... because is somehow silly to create a "bb() as byte" - that will eat some memory - to count something else...