Must return -1 if a < b 0 if a == b 1 if a > b
Semantic function to check that a D string implicitely conveys a termination byte after the slice. (typically those comes from string literals or stringDup/stringIDup)
Inserts a breakpoint instruction. useful to trigger the debugger.
Outputs a debug string in either: - stdout on POSIX-like (visible in the command-line) - the Output Windows on Windows (visible withing Visual Studio or with dbgview.exe) Warning: no end-of-line added!
Decode a Base64 encoded value, returning a buffer to be freed with free(). null in case of error or zero size.
Decode a Base64 encoded value, appending the result onto a Vec!ubyte. Reusing the same Vec!ubyte allows you to avoid reallocations. Note: err must point to a bool and cannot be null. Ugly signature sorry.
Destroys and frees a class object created with mallocEmplace.
Destroys and frees an interface object created with mallocEmplace.
Destroys and frees a non-class object created with mallocEmplace.
Encode a ubyte array as Base64, returning the encoded value, which shall be destroyed with free.
Encode a ubyte array as Base64, placing the result onto an Vec!ubyte.
Frees a slice allocated with mallocSlice.
Duplicates a slice with malloc. Equivalent to .dup Has to be cleaned-up with free(slice.ptr) or freeSlice(slice).
Duplicates a slice with malloc. Equivalent to .idup Has to be cleaned-up with free(slice.ptr) or freeSlice(slice).
Allocates and construct a struct or class object.
Allocates a slice with malloc.
Allocates a slice with malloc, but does not initialize the content.
Duplicates a zero-terminated string with malloc, return a char[] with zero-terminated byte. Has to be cleaned-up with free(s.ptr). Note: The zero-terminating byte is preserved. This allow to have a string which also can be converted to a C string with .ptr. However the zero byte is not included in slice length.
Duplicates a zero-terminated string with malloc, return a string. with zero-terminated byte. Has to be cleaned-up with free(s.ptr).
A bit faster than a dynamic cast. This is to avoid TypeInfo look-up.
Zero-terminated C string, to replace toStringz and toUTF16z
Various @nogc alternatives. This file includes parts of std.process, std.random, std.uuid.