Type Definition odbc_api::parameter::VarBinarySlice[][src]

type VarBinarySlice<'a> = VarBinary<&'a [u8]>;

Binds a byte array as a variadic binary input parameter.

While a byte array can provide us with a pointer to the start of the array and the length of the array itself, it can not provide us with a pointer to the length of the buffer. So to bind byte slices (&[u8]) we need to store the length in a separate value.

This type is created if into_parameter of the IntoParameter trait is called on a &[u8].

Implementations

impl<'a> VarBinarySlice<'a>[src]

pub const NULL: Self[src]

Indicates missing data

pub fn new(value: &'a [u8]) -> Self[src]

Constructs a new instance containing the bytes in the specified buffer.

Trait Implementations