> Isn't length + pointer... Basically a Pascal string? Unless I am mistaken.
Length + pointer is a record string, a pascal string has the length at the head of the buffer, behind the pointer.
Many years ago when reading Redis code I saw the same pattern: they pass around simple pointer to data, but there is a fixed length metadata just before that.
Many years ago when reading Redis code I saw the same pattern: they pass around simple pointer to data, but there is a fixed length metadata just before that.