In the createBytes and createString functions, after this line result->buffer = malloc(result->length); you're checking if the result is null, instead of checking if result->buffer is null.
Also in the deleteBytes function, there's no point in zeroing out the bytes->buffer and bytes->length values as the bytes itself is freed.
I knew about the RSV format after watching your video, and I think it's pretty cool. I'll try to use it where ever possible.
In the
createBytes
andcreateString
functions, after this lineresult->buffer = malloc(result->length);
you're checking if theresult
is null, instead of checking ifresult->buffer
is null.Also in the
deleteBytes
function, there's no point in zeroing out thebytes->buffer
andbytes->length
values as thebytes
itself is freed.I knew about the RSV format after watching your video, and I think it's pretty cool. I'll try to use it where ever possible.