Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kDat6Serializer.h
Go to the documentation of this file.
1
10 #ifndef K_API_DAT6_SERIALIZER_H
11 #define K_API_DAT6_SERIALIZER_H
12
13 #include <kApi/kApiDef.h>
14 #include <kApi/Io/kDat6Serializer.x.h>
15
22 //typedef kSerializer kDat6Serializer; --forward-declared in kApiDef.x.h
23
33 kFx(kStatus) kDat6Serializer_Construct(kDat6Serializer* serializer, kStream stream, kAlloc allocator);
34
49 kFx(kStatus) kDat6Serializer_EnableDictionary(kDat6Serializer serializer, kBool enable);
50
78 kFx(kStatus) kDat6Serializer_EnableCompression(kDat6Serializer serializer, kCompressionType algorithm, k32s level);
79
99 kFx(kStatus) kDat6Serializer_SaveCompressed(kObject object, const kChar* filePath, kCompressionType algorithm, k32s level);
100
101 #endif
kDat6Serializer::kDat6Serializer_EnableDictionary
kStatus kDat6Serializer_EnableDictionary(kDat6Serializer serializer, kBool enable)
Enables or disables the use of a type dictionary when writing objects.
kDat6Serializer::kDat6Serializer_EnableCompression
kStatus kDat6Serializer_EnableCompression(kDat6Serializer serializer, kCompressionType algorithm, k32s level)
Enables the use of compression in serialization.
kAlloc
Abstract base class for memory allocator types.
kChar
Represents a single unit (byte) in a UTF-8 character.
kDat6Serializer
Serializes/deserializes objects using kDat6 format.
kDat6Serializer::kDat6Serializer_SaveCompressed
kStatus kDat6Serializer_SaveCompressed(kObject object, const kChar *filePath, kCompressionType algorithm, k32s level)
Saves an object to file using the specified compression type.
kCompressionType
Type of compression algorithm.
kDat6Serializer::kDat6Serializer_Construct
kStatus kDat6Serializer_Construct(kDat6Serializer *serializer, kStream stream, kAlloc allocator)
Constructs a kDat6Serializer object.
kApiDef.h
Core Zen type declarations.
kStream
Represents an I/O stream.
k32s
Represents a 32-bit signed integer.
kObject
Root of all Zen classes.
kStatus
Represents an error code.
kBool
Represents a boolean value.