Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kSerializer.h
Go to the documentation of this file.
1
10 #ifndef K_API_SERIALIZER_H
11 #define K_API_SERIALIZER_H
12
13 #include <kApi/kApiDef.h>
14
15 kBeginHeader()
16
17
34 //typedef kObject kSerializer; --forward-declared in kApiDef.x.h
35
36
50 kFx(kStatus) kSerializer_Construct(kSerializer* serializer, kStream stream, kType serializerType, kAlloc allocator);
51
62 kFx(kStatus) kSerializer_LoadObject(kObject* object, kType serializerType, const kChar* filePath, kAlloc readAlloc);
63
73 kFx(kStatus) kSerializer_SaveObject(kObject object, kType serializerType, const kChar* filePath);
74
88 kFx(kStatus) kSerializer_SetVersion(kSerializer serializer, kAssembly assembly, kVersion version);
89
100 kFx(kStatus) kSerializer_SetSizeEncoding(kSerializer serializer, k32u byteCount);
101
110 kFx(kStatus) kSerializer_WriteObject(kSerializer serializer, kObject object);
111
121 kFx(kStatus) kSerializer_ReadObject(kSerializer serializer, kObject* object, kAlloc allocator);
122
131 kFx(kStatus) kSerializer_WriteText(kSerializer serializer, const kChar* data);
132
142 kFx(kStatus) kSerializer_ReadText(kSerializer serializer, kChar* data, kSize capacity);
143
152 kFx(kStatus) kSerializer_WriteByte(kSerializer serializer, kByte data);
153
163 kFx(kStatus) kSerializer_WriteByteArray(kSerializer serializer, const kByte* data, kSize count);
164
173 kFx(kStatus) kSerializer_ReadByte(kSerializer serializer, kByte* data);
174
184 kFx(kStatus) kSerializer_ReadByteArray(kSerializer serializer, kByte* data, kSize count);
185
194 kFx(kStatus) kSerializer_WriteChar(kSerializer serializer, kChar data);
195
205 kFx(kStatus) kSerializer_WriteCharArray(kSerializer serializer, const kChar* data, kSize count);
206
215 kFx(kStatus) kSerializer_ReadChar(kSerializer serializer, kChar* data);
216
226 kFx(kStatus) kSerializer_ReadCharArray(kSerializer serializer, kChar* data, kSize count);
227
236 kFx(kStatus) kSerializer_Write8u(kSerializer serializer, k8u data);
237
247 kFx(kStatus) kSerializer_Write8uArray(kSerializer serializer, const k8u* data, kSize count);
248
257 kFx(kStatus) kSerializer_Read8u(kSerializer serializer, k8u* data);
258
268 kFx(kStatus) kSerializer_Read8uArray(kSerializer serializer, k8u* data, kSize count);
269
278 kFx(kStatus) kSerializer_Write8s(kSerializer serializer, k8s data);
279
289 kFx(kStatus) kSerializer_Write8sArray(kSerializer serializer, const k8s* data, kSize count);
290
299 kFx(kStatus) kSerializer_Read8s(kSerializer serializer, k8s* data);
300
310 kFx(kStatus) kSerializer_Read8sArray(kSerializer serializer, k8s* data, kSize count);
311
320 kFx(kStatus) kSerializer_Write16u(kSerializer serializer, k16u data);
321
331 kFx(kStatus) kSerializer_Write16uArray(kSerializer serializer, const k16u* data, kSize count);
332
341 kFx(kStatus) kSerializer_Read16u(kSerializer serializer, k16u* data);
342
352 kFx(kStatus) kSerializer_Read16uArray(kSerializer serializer, k16u* data, kSize count);
353
362 kFx(kStatus) kSerializer_Write16s(kSerializer serializer, k16s data);
363
373 kFx(kStatus) kSerializer_Write16sArray(kSerializer serializer, const k16s* data, kSize count);
374
375
384 kFx(kStatus) kSerializer_Read16s(kSerializer serializer, k16s* data);
385
395 kFx(kStatus) kSerializer_Read16sArray(kSerializer serializer, k16s* data, kSize count);
396
397
406 kFx(kStatus) kSerializer_Write32u(kSerializer serializer, k32u data);
407
417 kFx(kStatus) kSerializer_Write32uArray(kSerializer serializer, const k32u* data, kSize count);
418
427 kFx(kStatus) kSerializer_Read32u(kSerializer serializer, k32u* data);
428
438 kFx(kStatus) kSerializer_Read32uArray(kSerializer serializer, k32u* data, kSize count);
439
448 kFx(kStatus) kSerializer_Write32s(kSerializer serializer, k32s data);
449
459 kFx(kStatus) kSerializer_Write32sArray(kSerializer serializer, const k32s* data, kSize count);
460
469 kFx(kStatus) kSerializer_Read32s(kSerializer serializer, k32s* data);
470
480 kFx(kStatus) kSerializer_Read32sArray(kSerializer serializer, k32s* data, kSize count);
481
490 kFx(kStatus) kSerializer_Write64u(kSerializer serializer, k64u data);
491
501 kFx(kStatus) kSerializer_Write64uArray(kSerializer serializer, const k64u* data, kSize count);
502
511 kFx(kStatus) kSerializer_Read64u(kSerializer serializer, k64u* data);
512
522 kFx(kStatus) kSerializer_Read64uArray(kSerializer serializer, k64u* data, kSize count);
523
532 kFx(kStatus) kSerializer_Write64s(kSerializer serializer, k64s data);
533
543 kFx(kStatus) kSerializer_Write64sArray(kSerializer serializer, const k64s* data, kSize count);
544
553 kFx(kStatus) kSerializer_Read64s(kSerializer serializer, k64s* data);
554
564 kFx(kStatus) kSerializer_Read64sArray(kSerializer serializer, k64s* data, kSize count);
565
574 kFx(kStatus) kSerializer_Write32f(kSerializer serializer, k32f data);
575
585 kFx(kStatus) kSerializer_Write32fArray(kSerializer serializer, const k32f* data, kSize count);
586
595 kFx(kStatus) kSerializer_Read32f(kSerializer serializer, k32f* data);
596
606 kFx(kStatus) kSerializer_Read32fArray(kSerializer serializer, k32f* data, kSize count);
607
616 kFx(kStatus) kSerializer_Write64f(kSerializer serializer, k64f data);
617
627 kFx(kStatus) kSerializer_Write64fArray(kSerializer serializer, const k64f* data, kSize count);
628
637 kFx(kStatus) kSerializer_Read64f(kSerializer serializer, k64f* data);
638
648 kFx(kStatus) kSerializer_Read64fArray(kSerializer serializer, k64f* data, kSize count);
649
661 kFx(kStatus) kSerializer_WriteSize(kSerializer serializer, kSize data);
662
675 kFx(kStatus) kSerializer_WriteSizeArray(kSerializer serializer, const kSize* data, kSize count);
676
688 kFx(kStatus) kSerializer_ReadSize(kSerializer serializer, kSize* data);
689
702 kFx(kStatus) kSerializer_ReadSizeArray(kSerializer serializer, kSize* data, kSize count);
703
715 kFx(kStatus) kSerializer_WriteSSize(kSerializer serializer, kSSize data);
716
729 kFx(kStatus) kSerializer_WriteSSizeArray(kSerializer serializer, const kSSize* data, kSize count);
730
742 kFx(kStatus) kSerializer_ReadSSize(kSerializer serializer, kSSize* data);
743
756 kFx(kStatus) kSerializer_ReadSSizeArray(kSerializer serializer, kSSize* data, kSize count);
757
767 kFx(kStatus) kSerializer_WriteType(kSerializer serializer, kType type, kTypeVersion* version);
768
778 kFx(kStatus) kSerializer_ReadType(kSerializer serializer, kType* type, kTypeVersion* version);
779
791 kFx(kStatus) kSerializer_WriteItems(kSerializer serializer, kType type, kTypeVersion version, const void* items, kSize count);
792
804 kFx(kStatus) kSerializer_ReadItems(kSerializer serializer, kType type, kTypeVersion version, void* items, kSize count);
805
816 kFx(kStatus) kSerializer_BeginWrite(kSerializer serializer, kType sizeType, kBool includeSize);
817
825 kFx(kStatus) kSerializer_EndWrite(kSerializer serializer);
826
836 kFx(kStatus) kSerializer_BeginRead(kSerializer serializer, kType sizeType, kBool includeSize);
837
845 kFx(kStatus) kSerializer_EndRead(kSerializer serializer);
846
854 kFx(kBool) kSerializer_ReadCompleted(kSerializer serializer);
855
864 kFx(kStatus) kSerializer_AdvanceRead(kSerializer serializer, kSize offset);
865
878 kFx(kStatus) kSerializer_Flush(kSerializer serializer);
879
887 kFx(kStatus) kSerializer_Reset(kSerializer serializer);
888
896 kFx(kStream) kSerializer_Stream(kSerializer serializer);
897
900 #define kSerializer_WriteObject_(S, D) kxSerializer_WriteObject_(S, D)
901 #define kSerializer_ReadObject_(S, D, A) kxSerializer_ReadObject_(S, D, A)
902
903 #define kSerializer_WriteByte_(S, D) kxSerializer_WriteByte_(S, D)
904 #define kSerializer_WriteByteArray_(S, D, C) kxSerializer_WriteByteArray_(S, D, C)
905 #define kSerializer_ReadByte_(S, D) kxSerializer_ReadByte_(S, D)
906 #define kSerializer_ReadByteArray_(S, D, C) kxSerializer_ReadByteArray_(S, D, C)
907
908 #define kSerializer_WriteChar_(S, D) kxSerializer_WriteChar_(S, D)
909 #define kSerializer_WriteCharArray_(S, D, C) kxSerializer_WriteCharArray_(S, D, C)
910 #define kSerializer_ReadChar_(S, D) kxSerializer_ReadChar_(S, D)
911 #define kSerializer_ReadCharArray_(S, D, C) kxSerializer_ReadCharArray_(S, D, C)
912
913 #define kSerializer_Write8u_(S, D) kxSerializer_Write8u_(S, D)
914 #define kSerializer_Write8uArray_(S, D, C) kxSerializer_Write8uArray_(S, D, C)
915 #define kSerializer_Read8u_(S, D) kxSerializer_Read8u_(S, D)
916 #define kSerializer_Read8uArray_(S, D, C) kxSerializer_Read8uArray_(S, D, C)
917
918 #define kSerializer_Write8s_(S, D) kxSerializer_Write8s_(S, D)
919 #define kSerializer_Write8sArray_(S, D, C) kxSerializer_Write8sArray_(S, D, C)
920 #define kSerializer_Read8s_(S, D) kxSerializer_Read8s_(S, D)
921 #define kSerializer_Read8sArray_(S, D, C) kxSerializer_Read8sArray_(S, D, C)
922
923 #define kSerializer_Write16u_(S, D) kxSerializer_Write16u_(S, D)
924 #define kSerializer_Write16uArray_(S, D, C) kxSerializer_Write16uArray_(S, D, C)
925 #define kSerializer_Read16u_(S, D) kxSerializer_Read16u_(S, D)
926 #define kSerializer_Read16uArray_(S, D, C) kxSerializer_Read16uArray_(S, D, C)
927
928 #define kSerializer_Write16s_(S, D) kxSerializer_Write16s_(S, D)
929 #define kSerializer_Write16sArray_(S, D, C) kxSerializer_Write16sArray_(S, D, C)
930 #define kSerializer_Read16s_(S, D) kxSerializer_Read16s_(S, D)
931 #define kSerializer_Read16sArray_(S, D, C) kxSerializer_Read16sArray_(S, D, C)
932
933 #define kSerializer_Write32u_(S, D) kxSerializer_Write32u_(S, D)
934 #define kSerializer_Write32uArray_(S, D, C) kxSerializer_Write32uArray_(S, D, C)
935 #define kSerializer_Read32u_(S, D) kxSerializer_Read32u_(S, D)
936 #define kSerializer_Read32uArray_(S, D, C) kxSerializer_Read32uArray_(S, D, C)
937
938 #define kSerializer_Write32s_(S, D) kxSerializer_Write32s_(S, D)
939 #define kSerializer_Write32sArray_(S, D, C) kxSerializer_Write32sArray_(S, D, C)
940 #define kSerializer_Read32s_(S, D) kxSerializer_Read32s_(S, D)
941 #define kSerializer_Read32sArray_(S, D, C) kxSerializer_Read32sArray_(S, D, C)
942
943 #define kSerializer_Write64u_(S, D) kxSerializer_Write64u_(S, D)
944 #define kSerializer_Write64uArray_(S, D, C) kxSerializer_Write64uArray_(S, D, C)
945 #define kSerializer_Read64u_(S, D) kxSerializer_Read64u_(S, D)
946 #define kSerializer_Read64uArray_(S, D, C) kxSerializer_Read64uArray_(S, D, C)
947
948 #define kSerializer_Write64s_(S, D) kxSerializer_Write64s_(S, D)
949 #define kSerializer_Write64sArray_(S, D, C) kxSerializer_Write64sArray_(S, D, C)
950 #define kSerializer_Read64s_(S, D) kxSerializer_Read64s_(S, D)
951 #define kSerializer_Read64sArray_(S, D, C) kxSerializer_Read64sArray_(S, D, C)
952
953 #define kSerializer_Write32f_(S, D) kxSerializer_Write32f_(S, D)
954 #define kSerializer_Write32fArray_(S, D, C) kxSerializer_Write32fArray_(S, D, C)
955 #define kSerializer_Read32f_(S, D) kxSerializer_Read32f_(S, D)
956 #define kSerializer_Read32fArray_(S, D, C) kxSerializer_Read32fArray_(S, D, C)
957
958 #define kSerializer_Write64f_(S, D) kxSerializer_Write64f_(S, D)
959 #define kSerializer_Write64fArray_(S, D, C) kxSerializer_Write64fArray_(S, D, C)
960 #define kSerializer_Read64f_(S, D) kxSerializer_Read64f_(S, D)
961 #define kSerializer_Read64fArray_(S, D, C) kxSerializer_Read64fArray_(S, D, C)
962
963 #define kSerializer_WriteSize_(S, D) kxSerializer_WriteSize_(S, D)
964 #define kSerializer_WriteSizeArray_(S, D, C) kxSerializer_WriteSizeArray_(S, D, C)
965 #define kSerializer_ReadSize_(S, D) kxSerializer_ReadSize_(S, D)
966 #define kSerializer_ReadSizeArray_(S, D, C) kxSerializer_ReadSizeArray_(S, D, C)
967
968 #define kSerializer_WriteSSize_(S, D) kxSerializer_WriteSSize_(S, D)
969 #define kSerializer_WriteSSizeArray_(S, D, C) kxSerializer_WriteSSizeArray_(S, D, C)
970 #define kSerializer_ReadSSize_(S, D) kxSerializer_ReadSSize_(S, D)
971 #define kSerializer_ReadSSizeArray_(S, D, C) kxSerializer_ReadSSizeArray_(S, D, C)
972
973 #define kSerializer_WriteType_(S, T, V) kxSerializer_WriteType_(S, T, V)
974 #define kSerializer_ReadType_(S, T, V) kxSerializer_ReadType_(S, T, V)
975
976 #define kSerializer_WriteItems_(S, T, V, I, C) kxSerializer_WriteItems_(S, T, V, I, C)
977 #define kSerializer_ReadItems_(S, T, V, I, C) kxSerializer_ReadItems_(S, T, V, I, C)
978
979 #define kSerializer_BeginWrite_(S, T, I) kxSerializer_BeginWrite_(S, T, I)
980 #define kSerializer_EndWrite_(S) kxSerializer_EndWrite_(S)
981 #define kSerializer_BeginRead_(S, T, I) kxSerializer_BeginRead_(S, T, I)
982 #define kSerializer_EndRead_(S) kxSerializer_EndRead_(S)
983 #define kSerializer_ReadCompleted_(S) kxSerializer_ReadCompleted_(S)
984
985 #define kSerializer_AdvanceRead_(S, O) kxSerializer_AdvanceRead_(S, O)
986 #define kSerializer_Flush_(S) kxSerializer_Flush_(S)
987 #define kSerializer_Reset_(S) kxSerializer_Reset_(S)
988 #define kSerializer_Stream_(S) kxSerializer_Stream_(S)
989
990
992 kEndHeader()
993
994 #include <kApi/Io/kSerializer.x.h>
995
996 #endif
kSerializer::kSerializer_Write16s
kStatus kSerializer_Write16s(kSerializer serializer, k16s data)
Writes a k16s value.
kSerializer::kSerializer_ReadSizeArray
kStatus kSerializer_ReadSizeArray(kSerializer serializer, kSize *data, kSize count)
Reads a kSize array.
kSerializer::kSerializer_ReadCharArray
kStatus kSerializer_ReadCharArray(kSerializer serializer, kChar *data, kSize count)
Reads a kChar array.
k32u
Represents a 32-bit unsigned integer.
kSerializer::kSerializer_Write32sArray
kStatus kSerializer_Write32sArray(kSerializer serializer, const k32s *data, kSize count)
Writes a k32s array.
kSerializer::kSerializer_EndWrite
kStatus kSerializer_EndWrite(kSerializer serializer)
Ends writing a measured data section.
kSerializer::kSerializer_Read64u
kStatus kSerializer_Read64u(kSerializer serializer, k64u *data)
Reads a k64u value.
kSerializer::kSerializer_Write8u
kStatus kSerializer_Write8u(kSerializer serializer, k8u data)
Writes a k8u value.
kSerializer::kSerializer_ReadChar
kStatus kSerializer_ReadChar(kSerializer serializer, kChar *data)
Reads a kChar value.
kSerializer::kSerializer_Read32f
kStatus kSerializer_Read32f(kSerializer serializer, k32f *data)
Reads a k32f value.
kSerializer::kSerializer_Write16sArray
kStatus kSerializer_Write16sArray(kSerializer serializer, const k16s *data, kSize count)
Writes a k16s array.
kSerializer::kSerializer_Read8u
kStatus kSerializer_Read8u(kSerializer serializer, k8u *data)
Reads a k8u value.
k64u
Represents a 64-bit unsigned integer.
kSerializer::kSerializer_Read8s
kStatus kSerializer_Read8s(kSerializer serializer, k8s *data)
Reads a k8s value.
kSerializer::kSerializer_WriteCharArray
kStatus kSerializer_WriteCharArray(kSerializer serializer, const kChar *data, kSize count)
Writes a kChar array.
kSerializer::kSerializer_Read16s
kStatus kSerializer_Read16s(kSerializer serializer, k16s *data)
Reads a k16s value.
kSerializer::kSerializer_Write8uArray
kStatus kSerializer_Write8uArray(kSerializer serializer, const k8u *data, kSize count)
Writes a k8u array.
kSerializer::kSerializer_EndRead
kStatus kSerializer_EndRead(kSerializer serializer)
Ends reading a measured data section.
kSerializer::kSerializer_Write32uArray
kStatus kSerializer_Write32uArray(kSerializer serializer, const k32u *data, kSize count)
Writes a k32u array.
kAssembly
Represents a library of types.
kSerializer::kSerializer_Read64f
kStatus kSerializer_Read64f(kSerializer serializer, k64f *data)
Reads a k64f value.
kSerializer::kSerializer_SetVersion
kStatus kSerializer_SetVersion(kSerializer serializer, kAssembly assembly, kVersion version)
Sets the version to use when serializing types.
kSerializer::kSerializer_Write32f
kStatus kSerializer_Write32f(kSerializer serializer, k32f data)
Writes a k32f value.
kSerializer::kSerializer_Read16u
kStatus kSerializer_Read16u(kSerializer serializer, k16u *data)
Reads a k16u value.
kSerializer::kSerializer_WriteType
kStatus kSerializer_WriteType(kSerializer serializer, kType type, kTypeVersion *version)
Writes a type code.
k16u
Represents a 16-bit unsigned integer.
kSerializer::kSerializer_Write16u
kStatus kSerializer_Write16u(kSerializer serializer, k16u data)
Writes a k16u value.
kSize
Represents an unsigned integer that can store a pointer address.
kAlloc
Abstract base class for memory allocator types.
kSerializer::kSerializer_Write64f
kStatus kSerializer_Write64f(kSerializer serializer, k64f data)
Writes a k64f value.
kSerializer::kSerializer_Stream
kStream kSerializer_Stream(kSerializer serializer)
Gets the underlying stream.
kSerializer::kSerializer_Read64uArray
kStatus kSerializer_Read64uArray(kSerializer serializer, k64u *data, kSize count)
Reads a k64u array.
kSerializer::kSerializer_Write64u
kStatus kSerializer_Write64u(kSerializer serializer, k64u data)
Writes a k64u value.
k8u
Represents an 8-bit unsigned integer.
kSerializer::kSerializer_ReadObject
kStatus kSerializer_ReadObject(kSerializer serializer, kObject *object, kAlloc allocator)
Reads an object from the underlying stream.
kSerializer::kSerializer_SaveObject
kStatus kSerializer_SaveObject(kObject object, kType serializerType, const kChar *filePath)
Saves an object to file using the specified serializer type.
kChar
Represents a single unit (byte) in a UTF-8 character.
kSerializer::kSerializer_Write64sArray
kStatus kSerializer_Write64sArray(kSerializer serializer, const k64s *data, kSize count)
Writes a k64s array.
kSerializer::kSerializer_Write64fArray
kStatus kSerializer_Write64fArray(kSerializer serializer, const k64f *data, kSize count)
Writes a k64f array.
kSerializer::kSerializer_WriteSize
kStatus kSerializer_WriteSize(kSerializer serializer, kSize data)
Writes a kSize value.
kByte
Represents a byte on the current platform.
kSerializer::kSerializer_WriteByte
kStatus kSerializer_WriteByte(kSerializer serializer, kByte data)
Writes a kByte value.
kSerializer::kSerializer_WriteSSizeArray
kStatus kSerializer_WriteSSizeArray(kSerializer serializer, const kSSize *data, kSize count)
Writes a kSSize array.
kSerializer::kSerializer_AdvanceRead
kStatus kSerializer_AdvanceRead(kSerializer serializer, kSize offset)
Reads and discards a specified number of bytes.
kSSize
Represents a signed integer that can store a pointer address.
kSerializer::kSerializer_Read32u
kStatus kSerializer_Read32u(kSerializer serializer, k32u *data)
Reads a k32u value.
kSerializer::kSerializer_WriteItems
kStatus kSerializer_WriteItems(kSerializer serializer, kType type, kTypeVersion version, const void *items, kSize count)
Writes an array of values or objects.
kSerializer::kSerializer_Write8s
kStatus kSerializer_Write8s(kSerializer serializer, k8s data)
Writes a k8s value.
kSerializer::kSerializer_Read8sArray
kStatus kSerializer_Read8sArray(kSerializer serializer, k8s *data, kSize count)
Reads a k8s array.
kSerializer::kSerializer_ReadByte
kStatus kSerializer_ReadByte(kSerializer serializer, kByte *data)
Reads a kByte value.
kSerializer
Base class for serialization/deserialization classes.
kSerializer::kSerializer_Reset
kStatus kSerializer_Reset(kSerializer serializer)
Discards any streaming context accumulated by the serializer.
kSerializer::kSerializer_WriteChar
kStatus kSerializer_WriteChar(kSerializer serializer, kChar data)
Writes a kChar value.
kSerializer::kSerializer_Read32uArray
kStatus kSerializer_Read32uArray(kSerializer serializer, k32u *data, kSize count)
Reads a k32u array.
kSerializer::kSerializer_Read32s
kStatus kSerializer_Read32s(kSerializer serializer, k32s *data)
Reads a k32s value.
kSerializer::kSerializer_Write32u
kStatus kSerializer_Write32u(kSerializer serializer, k32u data)
Writes a k32u value.
kSerializer::kSerializer_BeginWrite
kStatus kSerializer_BeginWrite(kSerializer serializer, kType sizeType, kBool includeSize)
Begins writing a measured section of data, using an 8, 16, 32, or 64-bit integer to record the size...
kSerializer::kSerializer_Read64sArray
kStatus kSerializer_Read64sArray(kSerializer serializer, k64s *data, kSize count)
Reads a k64s array.
kSerializer::kSerializer_Write32s
kStatus kSerializer_Write32s(kSerializer serializer, k32s data)
Writes a k32s value.
kType::kTypeVersion
kPointer kTypeVersion
Represents an opaque reference to type version information (used in object serialization).
kSerializer::kSerializer_BeginRead
kStatus kSerializer_BeginRead(kSerializer serializer, kType sizeType, kBool includeSize)
Begins reading a measured data section.
kSerializer::kSerializer_Write64s
kStatus kSerializer_Write64s(kSerializer serializer, k64s data)
Writes a k64s value.
kApiDef.h
Core Zen type declarations.
kSerializer::kSerializer_Read64fArray
kStatus kSerializer_Read64fArray(kSerializer serializer, k64f *data, kSize count)
Reads a k64f array.
kSerializer::kSerializer_ReadItems
kStatus kSerializer_ReadItems(kSerializer serializer, kType type, kTypeVersion version, void *items, kSize count)
Reads an array of values or objects.
kStream
Represents an I/O stream.
kSerializer::kSerializer_ReadSize
kStatus kSerializer_ReadSize(kSerializer serializer, kSize *data)
Reads a kSize value.
k32s
Represents a 32-bit signed integer.
kSerializer::kSerializer_Write16uArray
kStatus kSerializer_Write16uArray(kSerializer serializer, const k16u *data, kSize count)
Writes a k16u array.
kSerializer::kSerializer_LoadObject
kStatus kSerializer_LoadObject(kObject *object, kType serializerType, const kChar *filePath, kAlloc readAlloc)
Loads an object from file using the specified serializer type.
kSerializer::kSerializer_Construct
kStatus kSerializer_Construct(kSerializer *serializer, kStream stream, kType serializerType, kAlloc allocator)
Constructs a serializer object using the specified serialization format.
kSerializer::kSerializer_Write8sArray
kStatus kSerializer_Write8sArray(kSerializer serializer, const k8s *data, kSize count)
Writes a k8s array.
kSerializer::kSerializer_Read64s
kStatus kSerializer_Read64s(kSerializer serializer, k64s *data)
Reads a k64s value.
kSerializer::kSerializer_Read16sArray
kStatus kSerializer_Read16sArray(kSerializer serializer, k16s *data, kSize count)
Reads a k16s array.
kSerializer::kSerializer_WriteSizeArray
kStatus kSerializer_WriteSizeArray(kSerializer serializer, const kSize *data, kSize count)
Writes a kSize array.
k64s
Represents a 64-bit signed integer.
kSerializer::kSerializer_ReadText
kStatus kSerializer_ReadText(kSerializer serializer, kChar *data, kSize capacity)
Reads a null-terminated kChar array.
kSerializer::kSerializer_WriteText
kStatus kSerializer_WriteText(kSerializer serializer, const kChar *data)
Writes a null-terminated kChar array.
kSerializer::kSerializer_WriteByteArray
kStatus kSerializer_WriteByteArray(kSerializer serializer, const kByte *data, kSize count)
Writes a kByte array.
k8s
Represents an 8-bit signed integer.
kSerializer::kSerializer_ReadByteArray
kStatus kSerializer_ReadByteArray(kSerializer serializer, kByte *data, kSize count)
Reads a kByte array.
kSerializer::kSerializer_Read32sArray
kStatus kSerializer_Read32sArray(kSerializer serializer, k32s *data, kSize count)
Reads a k32s array.
kType
Represents metadata about a type (class, interface, or value).
kSerializer::kSerializer_SetSizeEncoding
kStatus kSerializer_SetSizeEncoding(kSerializer serializer, k32u byteCount)
Explicitly sets the number of bytes used to encode/decode kSize and kSSize values.
kSerializer::kSerializer_WriteObject
kStatus kSerializer_WriteObject(kSerializer serializer, kObject object)
Writes an object to the underlying stream.
kSerializer::kSerializer_ReadCompleted
kBool kSerializer_ReadCompleted(kSerializer serializer)
Determines whether the current measured read section has more bytes.
kSerializer::kSerializer_Write32fArray
kStatus kSerializer_Write32fArray(kSerializer serializer, const k32f *data, kSize count)
Writes a k32f array.
k16s
Represents a 16-bit signed integer.
k32f
Represents a 32-bit floating-point number.
kObject
Root of all Zen classes.
kVersion
Represents a version number.
kSerializer::kSerializer_Read16uArray
kStatus kSerializer_Read16uArray(kSerializer serializer, k16u *data, kSize count)
Reads a k16u array.
kStatus
Represents an error code.
kSerializer::kSerializer_ReadSSize
kStatus kSerializer_ReadSSize(kSerializer serializer, kSSize *data)
Reads a kSSize value.
kSerializer::kSerializer_ReadType
kStatus kSerializer_ReadType(kSerializer serializer, kType *type, kTypeVersion *version)
Reads a type code.
kSerializer::kSerializer_Read8uArray
kStatus kSerializer_Read8uArray(kSerializer serializer, k8u *data, kSize count)
Reads a k8u array.
kSerializer::kSerializer_Write64uArray
kStatus kSerializer_Write64uArray(kSerializer serializer, const k64u *data, kSize count)
Writes a k64u array.
kSerializer::kSerializer_ReadSSizeArray
kStatus kSerializer_ReadSSizeArray(kSerializer serializer, kSSize *data, kSize count)
Reads a kSSize array.
k64f
Represents a 64-bit floating-point number.
kSerializer::kSerializer_Read32fArray
kStatus kSerializer_Read32fArray(kSerializer serializer, k32f *data, kSize count)
Reads a k32f array.
kBool
Represents a boolean value.
kSerializer::kSerializer_WriteSSize
kStatus kSerializer_WriteSSize(kSerializer serializer, kSSize data)
Writes a kSSize value.
kSerializer::kSerializer_Flush
kStatus kSerializer_Flush(kSerializer serializer)
Flushes the serializer write buffer to the underlying stream.