Loading...
Select Version
When a Record object is generated, either an empty record buffer of a required size can be created or a buffer provided by the user can be used. If this buffer already contains data, the length of the data can also be transferred.
Typically you should select the size of the buffer so that there will be space in it for the longest expected record. The Record object can then always be reused for input/output if the old content is no longer required instead of repeatedly generating new instances.
A Copy constructor is also available which generates a new Record object from the data of another record. A one-to-one copy of a Record object can be generated with the clone() method.