Variable-length cbuffer