Trait cbuffer::TxBuffer[][src]

pub trait TxBuffer {
    fn len(&self) -> usize;
fn as_c_void(&self) -> (*const c_void, size_t);
fn as_c_char(&self) -> (*const c_char, size_t); }

The 'TxBuffer' is a used when writing data out. It's contents must be fully initialized.

Required methods

fn len(&self) -> usize[src]

The used length

fn as_c_void(&self) -> (*const c_void, size_t)[src]

Returns a const void*/size_t pair to be used in the C call.

fn as_c_char(&self) -> (*const c_char, size_t)[src]

Returns a const char*/size_t pair to be used in the C call.

Loading content...

Implementations on Foreign Types

impl TxBuffer for Vec<u8>[src]

impl<const N: usize> TxBuffer for [u8; N][src]

Loading content...

Implementors

Loading content...