mirror of
https://github.com/fraillt/bitsery.git
synced 2026-07-23 22:49:20 +00:00
To get the most out of Bitsery, start with the tutorial. Once you're familiar with the library consider the following reference material.
Library design:
fundamental typesvalueNb instead of valueflexible syntaxserializer/deserializer functions overloadsextending library functionalityerrors handlingforward/backward compatibility via Growable extensionpointersinheritance
Core Serializer/Deserializer functions (alphabetical order):
alignboolValuecontainerextcontextcontext<T>contextOrNull<T>objecttextvalue
Serializer/Deserializer extensions via ext method (alphabetical order):
BaseClassEntropyGrowablePointerOwnerPointerObserverReferencedByPointerStdMapStdOptionalStdQueueStdSetStdStackValueRangeVirtualBaseClass
AdapterWriter/Reader functions:
writeBits/readBitswriteBytes/readByteswriteBuffer/readBufferalignbeginSession/endSessionflush (writer only)writtenBytesCount (writer only)setError (reader only)getError (reader only)isCompletedSuccessfully (reader only)
Input adapters (buffer and stream) functions:
readerrorsetErrorisCompletedSuccessfully
Output adapters (buffer and stream) functions:
writeflushwrittenBytesCount(buffer adapter only)
Tips and tricks:
- if you're getting static assert "please define 'serialize' function", most likely it is because your serialize function is not defined in same namespace as object.
Other: