ByteAppender
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender
#![allow(unused)] fn main() { pub trait ByteAppender<T> }
Trait functions
append_u16
Appends an unsigned 16 bit integer encoded in big endian
Arguments
word
- a 16 bit unsigned integer typed as u16
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_u16
#![allow(unused)] fn main() { fn append_u16(ref self: T, word: u16) }
append_u16_le
Appends an unsigned 16 bit integer encoded in little endian
Arguments
word
- a 16 bit unsigned integer typed as u16
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_u16_le
#![allow(unused)] fn main() { fn append_u16_le(ref self: T, word: u16) }
append_u32
Appends an unsigned 32 bit integer encoded in big endian
Arguments
word
- a 32 bit unsigned integer typed as u32
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_u32
#![allow(unused)] fn main() { fn append_u32(ref self: T, word: u32) }
append_u32_le
Appends an unsigned 32 bit integer encoded in little endian
Arguments
word
- a 32 bit unsigned integer typed as u32
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_u32_le
#![allow(unused)] fn main() { fn append_u32_le(ref self: T, word: u32) }
append_u64
Appends an unsigned 64 bit integer encoded in big endian
Arguments
word
- a 64 bit unsigned integer typed as u64
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_u64
#![allow(unused)] fn main() { fn append_u64(ref self: T, word: u64) }
append_u64_le
Appends an unsigned 64 bit integer encoded in little endian
Arguments
word
- a 64 bit unsigned integer typed as u64
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_u64_le
#![allow(unused)] fn main() { fn append_u64_le(ref self: T, word: u64) }
append_u128
Appends an unsigned 128 bit integer encoded in big endian
Arguments
word
- a 128 bit unsigned integer typed as u128
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_u128
#![allow(unused)] fn main() { fn append_u128(ref self: T, word: u128) }
append_u128_le
Appends an unsigned 128 bit integer encoded in little endian
Arguments
word
- a 128 bit unsigned integer typed as u128
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_u128_le
#![allow(unused)] fn main() { fn append_u128_le(ref self: T, word: u128) }
append_u256
Appends an unsigned 256 bit integer encoded in big endian
Arguments
word
- a 256 bit unsigned integer typed as u256
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_u256
#![allow(unused)] fn main() { fn append_u256(ref self: T, word: u256) }
append_u256_le
Appends an unsigned 256 bit integer encoded in little endian
Arguments
word
- a 256 bit unsigned integer typed as u256
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_u256_le
#![allow(unused)] fn main() { fn append_u256_le(ref self: T, word: u256) }
append_u512
Appends an unsigned 512 bit integer encoded in big endian
Arguments
word
- a 512 bit unsigned integer typed as u32
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_u512
#![allow(unused)] fn main() { fn append_u512(ref self: T, word: u512) }
append_u512_le
Appends an unsigned 512 bit integer encoded in little endian
Arguments
word
- a 512 bit unsigned integer typed as u32
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_u512_le
#![allow(unused)] fn main() { fn append_u512_le(ref self: T, word: u512) }
append_i8
Appends a signed 8 bit integer
Arguments
word
- an 8 bit signed integer typed as i8
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_i8
#![allow(unused)] fn main() { fn append_i8(ref self: T, word: i8) }
append_i16
Appends a signed 16 bit integer encoded in big endian
Arguments
word
- a 16 bit signed integer typed as i16
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_i16
#![allow(unused)] fn main() { fn append_i16(ref self: T, word: i16) }
append_i16_le
Appends a signed 16 bit integer encoded in little endian
Arguments
word
- a 16 bit signed integer typed as i16
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_i16_le
#![allow(unused)] fn main() { fn append_i16_le(ref self: T, word: i16) }
append_i32
Appends a signed 32 bit integer encoded in big endian
Arguments
word
- a 32 bit signed integer typed as i32
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_i32
#![allow(unused)] fn main() { fn append_i32(ref self: T, word: i32) }
append_i32_le
Appends a signed 32 bit integer encoded in little endian
Arguments
word
- a 32 bit signed integer typed as i32
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_i32_le
#![allow(unused)] fn main() { fn append_i32_le(ref self: T, word: i32) }
append_i64
Appends a signed 64 bit integer encoded in big endian
Arguments
word
- a 64 bit signed integer typed as i64
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_i64
#![allow(unused)] fn main() { fn append_i64(ref self: T, word: i64) }
append_i64_le
Appends a signed 64 bit integer encoded in little endian
Arguments
word
- a 64 bit signed integer typed as i64
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_i64_le
#![allow(unused)] fn main() { fn append_i64_le(ref self: T, word: i64) }
append_i128
Appends a signed 128 bit integer encoded in big endian
Arguments
word
- a 128 bit signed integer typed as i128
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_i128
#![allow(unused)] fn main() { fn append_i128(ref self: T, word: i128) }
append_i128_le
Appends a signed 128 bit integer encoded in little endian
Arguments
word
- a 128 bit signed integer typed as i128
Fully qualified path: alexandria_data_structures::byte_appender::ByteAppender::append_i128_le
#![allow(unused)] fn main() { fn append_i128_le(ref self: T, word: i128) }