Trait concordium_std::Write [−][src]
The Write trait provides functionality for writing to byte streams.
Associated Types
Loading content...Required methods
pub fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Err>[src]
Try to write the given buffer into the output stream. If writes are successful returns the number of bytes written.
Provided methods
pub fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Err>[src]
Attempt to write the entirety of the buffer to the output by repeatedly
calling write until either no more output can written, or writing
fails.
pub fn write_u8(&mut self, x: u8) -> Result<(), Self::Err>[src]
Write a single byte to the output.
pub fn write_u16(&mut self, x: u16) -> Result<(), Self::Err>[src]
Write a u16 in little endian.
pub fn write_u32(&mut self, x: u32) -> Result<(), Self::Err>[src]
Write a u32 in little endian.
pub fn write_u64(&mut self, x: u64) -> Result<(), Self::Err>[src]
Write a u64 in little endian.
pub fn write_i8(&mut self, x: i8) -> Result<(), Self::Err>[src]
Write a i8 to the output.
pub fn write_i16(&mut self, x: i16) -> Result<(), Self::Err>[src]
Write a i16 in little endian.
pub fn write_i32(&mut self, x: i32) -> Result<(), Self::Err>[src]
Write a i32 in little endian.
pub fn write_i64(&mut self, x: i64) -> Result<(), Self::Err>[src]
Write a i64 in little endian.
Implementors
impl Write for ContractState[src]
impl Write for Vec<u8, Global>[src]
type Err = ()
pub fn write(
&mut self,
buf: &[u8]
) -> Result<usize, <Vec<u8, Global> as Write>::Err>[src]
&mut self,
buf: &[u8]
) -> Result<usize, <Vec<u8, Global> as Write>::Err>
impl<'_> Write for Cursor<&'_ mut Vec<u8, Global>>[src]
type Err = ()
pub fn write(
&mut self,
buf: &[u8]
) -> Result<usize, <Cursor<&'_ mut Vec<u8, Global>> as Write>::Err>[src]
&mut self,
buf: &[u8]
) -> Result<usize, <Cursor<&'_ mut Vec<u8, Global>> as Write>::Err>