1 | #ifndef THP_SERIALIZATION_INC |
2 | #define THP_SERIALIZATION_INC |
3 | |
4 | template <class io> |
5 | void doRead(io fildes, void* buf, size_t nbytes); |
6 | |
7 | template <class io> |
8 | void doWrite(io fildes, void* buf, size_t nbytes); |
9 | |
10 | template <class io> |
11 | void THPStorage_writeFileRaw( |
12 | c10::StorageImpl* self, |
13 | io fd, |
14 | bool save_size, |
15 | uint64_t element_size); |
16 | |
17 | template <class io> |
18 | c10::intrusive_ptr<c10::StorageImpl> THPStorage_readFileRaw( |
19 | io fd, |
20 | c10::intrusive_ptr<c10::StorageImpl> storage, |
21 | uint64_t element_size); |
22 | |
23 | #endif |
24 | |