diff options
author | 2021-03-10 15:04:13 +0200 | |
---|---|---|
committer | 2021-03-10 15:33:58 +0200 | |
commit | 8788b9b33ec46e3f96170fb35a70a03addbf9671 (patch) | |
tree | 44b620061ca427f436e89c7beb80022febde1e58 /src/stream.h | |
parent | d7e2af2582660e3ed4ce824c33a21ffbf9ed4c6f (diff) | |
download | algos-ld1-8788b9b33ec46e3f96170fb35a70a03addbf9671.tar.gz algos-ld1-8788b9b33ec46e3f96170fb35a70a03addbf9671.tar.bz2 algos-ld1-8788b9b33ec46e3f96170fb35a70a03addbf9671.zip |
refactor && improve.
Make code more reusable and generic while preparing to add uncached ops.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'src/stream.h')
-rw-r--r-- | src/stream.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stream.h b/src/stream.h index d208bdb..6288d32 100644 --- a/src/stream.h +++ b/src/stream.h @@ -10,11 +10,11 @@ int stream_open(struct stream * const in); int stream_close(struct stream * const in); -int direct_get_array(struct stream * const restrict in, ssize_t idx, struct entry_l * const data); -int direct_get_list(struct stream * const restrict in, ssize_t idx, struct entry_l * const data); -int direct_put_array(struct stream * const restrict in, ssize_t idx, const struct entry_l * const data); -int direct_put_list(struct stream * const restrict in, ssize_t idx, const struct entry_l * const data); +/* uncached blockmanip */ +int stream_copy_range(struct stream * const restrict src, struct stream * const restrict dest); + +/* misc */ int stream_shallow_copy(struct stream const * const restrict src, struct stream * const dest); #endif /* ALGOS_IO_H_INCLUDED */ |