pub struct SzBuffer { /* private fields */ }
Expand description
Use this buffer type to fetch zero terminated strings from the ODBC API. Either allocates a buffer for wide or narrow strings dependend on the features set.
Implementations§
source§impl SzBuffer
impl SzBuffer
sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates a buffer which can hold at least capacity
characters, excluding the terminating
zero. Or phrased differently. It will allocate one additional character to hold the
terminating zero, so the caller should not factor it into the size of capacity.