364 #include <kApi/Utils/kUtils.x.h>
Represents a 32-bit unsigned integer.
kStatus kSave5(kObject object, const kChar *fileName)
Saves an object to file using kDat-5 serialization.
kBool kStrEquals(const kChar *a, const kChar *b)
Tests a pair of character sequences for equality.
kStatus kStrToLower(kChar *str)
Converts characters in the given sequence to lower case.
Represents a 64-bit unsigned integer.
kStatus kStrCopy(kChar *dest, kSize capacity, const kChar *src)
Copies characters from source to destination.
kStatus kMemCopy(void *dest, const void *src, kSize size)
Copies memory from a source buffer to a non-overlapping destination.
kStatus kSave6(kObject object, const kChar *fileName)
Saves an object to file using kDat-6 serialization.
kStatus kStrCat(kChar *dest, kSize capacity, const kChar *src)
Appends characters from source to destination.
Represents an unsigned integer that can store a pointer address.
Abstract base class for memory allocator types.
kStatus kMemFree(void *mem)
Frees a block of memory that was allocated using kMemAlloc or kMemAllocZero.
kStatus kMemAlloc(kSize size, void *mem)
Allocates a block of memory from the application heap.
kStatus kMemAllocZero(kSize size, void *mem)
Allocates and zero-initializes block of memory from the application heap.
k64u kRandom64u()
Generates a random 64-bit number.
kStatus kStrPrintvf(kChar *dest, kSize capacity, const kChar *format, kVarArgList argList)
Variable-argument version of kStrPrintf.
Represents a single unit (byte) in a UTF-8 character.
Represents a byte on the current platform.
const kChar * kStrFindLast(const kChar *str, const kChar *subStr)
Finds the last occurrence of a character sequence.
kStatus kLoad5(kObject *object, const kChar *fileName, kAlloc allocator)
Loads an object from file using kDat-5 serialization.
kStatus kLogvf(const kChar *format, kVarArgList argList)
Variable-argument version of kLogf.
kBool kMemEquals(const void *a, const void *b, kSize size)
Compares one memory buffer with another.
kStatus kDisposeRef(kObject *object)
Disposes an object and resets the object handle to kNULL.
kStatus kMemMove(void *dest, const void *src, kSize size)
Copies memory from a source buffer to a potentially-overlapping destination.
k32s kStrCompare(const kChar *a, const kChar *b)
Compares one string to another.
const kChar * kStrFindFirst(const kChar *str, const kChar *subStr)
Finds the first occurrence of a character sequence.
kStatus kDestroyRef(kObject *object)
Destroys an object and resets the object handle to kNULL.
kStatus kShareRef(kObject *object, kObject source)
Shares an object and sets a handle to refer to the shared object.
Essential API declarations.
Represents a 32-bit signed integer.
kSize kStrLength(const kChar *str)
Determines the number of kChar units in a characater sequence.
k32s kStrCompareLower(const kChar *a, const kChar *b)
Performs a case-insenstive comparison of two strings.
k32u kRandom32u()
Generates a random 32-bit number.
kStatus kLoad6(kObject *object, const kChar *fileName, kAlloc allocator)
Loads an object from file using kDat-6 serialization.
kStatus kMemFreeRef(void *mem)
Frees a block of memory that was allocated using kMemAlloc or kMemAllocZero and resets the memory poi...
kStatus kMemSet(void *dest, kByte fill, kSize size)
Sets a block of memory to the given byte value.
kSize kRandomSize()
Generates a random number of type kSize.
Root of all class types in the Zen type system.
Represents an enumeration of error codes.
kStatus kStrPrintf(kChar *dest, kSize capacity, const kChar *format,...)
Formats a string using printf-style arguments.
kStatus kLogf(const kChar *format,...)
Writes to logging handler (if registered).
Represents a boolean value.