[−][src]Trait bin_codec::DecodeBe
Associated Types
type Context
Required methods
fn decode_offset(
data: &[u8],
offset: &mut usize,
sd: &mut ShouldDecode,
ctx: &mut Self::Context,
bits: usize
) -> Result<Self>
data: &[u8],
offset: &mut usize,
sd: &mut ShouldDecode,
ctx: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
Provided methods
Loading content...Implementations on Foreign Types
impl DecodeBe for u8
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeBe for i8
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeBe for u16
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeBe for i16
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeBe for u32
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeBe for i32
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeBe for u64
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeBe for i64
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeBe for u128
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeBe for i128
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeBe for f32
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
_bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
_bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeBe for f64
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
_bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
_bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
fn decode(data: &[u8], ctx: &mut Self::Context) -> Result<(Self, usize)>
[src]
impl DecodeBe for bool
[src]
type Context = ()
fn decode_offset(
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
_bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
_: &mut ShouldDecode,
_: &mut Self::Context,
_bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
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_offset(
data: &[u8],
offset: &mut usize,
sd: &mut ShouldDecode,
ctx: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
sd: &mut ShouldDecode,
ctx: &mut Self::Context,
bits: usize
) -> Result<Self>
fn default_bits() -> usize
[src]
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_offset(
data: &[u8],
offset: &mut usize,
sd: &mut ShouldDecode,
ctx: &mut Self::Context,
bits: usize
) -> Result<Self>
[src]
data: &[u8],
offset: &mut usize,
sd: &mut ShouldDecode,
ctx: &mut Self::Context,
bits: usize
) -> Result<Self>