id_compress

Compress an identifier for name mangling purposes. Format is if ASCII, then it's just the char. If high bit set, then it's a length/offset pair

extern (C) nothrow @safe @trusted
char*
id_compress
(
const(char)* id
,
int idlen
,
size_t* plen
)

Parameters

id const(char)*

string to compress

idlen int

length of id

plen size_t*

where to store length of compressed result

Return Value

Type: char*

malloc'd compressed 0-terminated identifier

Meta