Hi
A new container object has joined the ObjAsm arsenal.
It's called
Vector, by analogy with a vector in other languages such as
https://en.wikipedia.org/wiki/Sequence_container_(C%2B%2B)#VectorIt's also very similar to an
XWordCollection, but lighter and almost interchangeable. Since it operates in a linear space, it is very fast.
It was written so that it could be compiled setting a few switches for different payload sizes like BYTE, WORD, DWORD or even QWORD.
This template can also be compiled for 32- and 64-bit targets.
Descendants can implement additional features like sorting or additional processing.
Serialization is supported like every other object via the
Stream put and get methods. Unlike
Collections, the payload is not serialized.
To demonstrate the use of Vectors, I added a new Demo(05) to the ObjAsm project, that will be released soon.
If you'd like some insight, you can download the latest development version from GitHub.
Due to the great versatility of the Collections, Vectors will certainly enjoy the same success.
Biterider