maxon::DATAFORMAT Namespace Reference

Detailed Description

Parameters for DataFormatReader/Writer.

Functions

 MAXON_ATTRIBUTE (Id, COMPRESSION, "net.maxon.dataformat.compression")
 
 MAXON_ATTRIBUTE (Bool, NO_REFERENCES, "net.maxon.dataformat.no_references")
 
 MAXON_ATTRIBUTE (Bool, ALLOW_DUPLICATES, "net.maxon.dataformat.allow_duplicates")
 
 MAXON_ATTRIBUTE (Bool, SORTED, "net.maxon.dataformat.sorted")
 

Function Documentation

◆ MAXON_ATTRIBUTE() [1/4]

maxon::DATAFORMAT::MAXON_ATTRIBUTE ( Id  ,
COMPRESSION  ,
"net.maxon.dataformat.compression"   
)

Enable compression during write for binary format. The performance hit is modest.

◆ MAXON_ATTRIBUTE() [2/4]

maxon::DATAFORMAT::MAXON_ATTRIBUTE ( Bool  ,
NO_REFERENCES  ,
"net.maxon.dataformat.no_references"   
)

It does not support writing of WeakRefs to COW objects. Can increase the file size a lot.

Write all references directly as non-referenced objects (text formats only).

◆ MAXON_ATTRIBUTE() [3/4]

maxon::DATAFORMAT::MAXON_ATTRIBUTE ( Bool  ,
ALLOW_DUPLICATES  ,
"net.maxon.dataformat.allow_duplicates"   
)

Decreases the file size. It slightly increases memory usage and decreases performance while writing.

If false, all identical Id/InternedId/CString/String objects will only be written once (binary format only).

◆ MAXON_ATTRIBUTE() [4/4]

maxon::DATAFORMAT::MAXON_ATTRIBUTE ( Bool  ,
SORTED  ,
"net.maxon.dataformat.sorted"   
)

Sort all maps and sets when writing (text formats only). This slightly increases memory usage and decreases performance while writing.