[][src]Trait bin_codec::DecodeBe

pub trait DecodeBe: Sized {
type Context;
    fn decode_offset(
        data: &[u8],
        offset: &mut usize,
        sd: &mut ShouldDecode,
        ctx: &mut Self::Context,
        bits: usize
    ) -> Result<Self>;
fn default_bits() -> usize; fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)> { ... } }

Associated Types

type Context

Loading content...

Required methods

fn decode_offset(
    data: &[u8],
    offset: &mut usize,
    sd: &mut ShouldDecode,
    ctx: &mut Self::Context,
    bits: usize
) -> Result<Self>

fn default_bits() -> usize

Loading content...

Provided methods

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>

Loading content...

Implementations on Foreign Types

impl DecodeBe for u8[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeBe for i8[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeBe for u16[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeBe for i16[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeBe for u32[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeBe for i32[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeBe for u64[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeBe for i64[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeBe for u128[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeBe for i128[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeBe for f32[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeBe for f64[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl DecodeBe for bool[src]

type Context = ()

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl<E: DecodeBe> DecodeBe for Vec<E>[src]

type Context = E::Context

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

impl<E: DecodeBe> DecodeBe for Option<E>[src]

type Context = E::Context

fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>[src]

Loading content...

Implementors

Loading content...