Пример #1
0
/// Reads the exception from stream \p is.
void file_exception::read (istream& is)
{
    libc_exception::read (is);
    string filename;
    is >> filename;
    is.align (8);
    filename.copyto (filename, VectorSize(m_Filename));
}
Пример #2
0
/// Reads the object from stream \p s
void memblock::read (istream& is)
{
    written_size_type n;
    is >> n;
    is.verify_remaining ("read", "ustl::memblock", n);
    resize (n);
    is.read (data(), writable_size());
    is.align (alignof (n));
}