コード例 #1
0
static inline bool successful_whole_read (GenericReader& r, void* const buf, size_t const bufbytesize) {
    bool const readprecice(r.read(buf, bufbytesize));
    DASSERT(readprecice);
    return readprecice;
}
コード例 #2
0
static inline bool successful_whole_read (GenericReader& r, T& obj) {
    bool const readprecice(r.read(&obj, sizeof(T)));
    DASSERT(readprecice);
    return readprecice;
}