blob: 8d1f7898482284feaf20c10ddc872b373606d4f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* SPDX-License-Identifier: LGPL-2.1-only */
/* Copyright (C) 2020-2021 Gediminas Jakutis */
#ifndef ALGOS_IO_H_INCLUDED
#define ALGOS_IO_H_INCLUDED
#include "defs.h"
int stream_open(struct stream * const in);
int stream_close(struct stream * const in);
/* uncached GET */
struct entry_l *file_get_array(struct stream * const in, struct entry_l * const store);
struct entry_l *file_get_list(struct stream * const in, struct entry_l * const store);
/* uncached PUT */
int file_put_array(struct stream * const in, const struct entry_l * const data);
int file_put_list(struct stream * const restrict in, const struct entry_l * const node);
/* uncached blockmanip */
int file_transfer(struct stream * const src, struct stream * const dest);
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 */
|