logoalt Hacker News

masklinntoday at 4:57 AM1 replyview on HN

> 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.


Replies

nopurposetoday at 7:46 AM

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.

show 1 reply