[][src]Trait rkyv::Seek

pub trait Seek: Write {
    pub fn seek(&mut self, pos: usize) -> Result<(), Self::Error>;

    pub fn archive_root<T: Archive>(
        &mut self,
        value: &T
    ) -> Result<usize, Self::Error> { ... }
pub fn archive_ref_root<T: ArchiveRef + ?Sized>(
        &mut self,
        value: &T
    ) -> Result<usize, Self::Error> { ... } }

A writer that can seek to an absolute position.

Required methods

pub fn seek(&mut self, pos: usize) -> Result<(), Self::Error>[src]

Seeks the writer to the given absolute position.

Loading content...

Provided methods

pub fn archive_root<T: Archive>(
    &mut self,
    value: &T
) -> Result<usize, Self::Error>
[src]

Archives the given value at the nearest available position. If the writer is already aligned, it will archive it at the current position.

pub fn archive_ref_root<T: ArchiveRef + ?Sized>(
    &mut self,
    value: &T
) -> Result<usize, Self::Error>
[src]

Archives a reference to the given value at the nearest available position. If the writer is already aligned, it will archive it at the current position.

Loading content...

Implementors

impl<T: AsRef<[u8]> + AsMut<[u8]>> Seek for ArchiveBuffer<T>[src]

impl<W: Write + Seek> Seek for ArchiveWriter<W>[src]

Loading content...