Prefixes a buffer with its length.