Chemical
Dark
Light
Paper
Themes
Dark
Light
Paper
Modules
cstd
core
std
compiler
compiler_runtime
lab
transformer
atomic
async
crashsave
osrand
crypto
encoding
bcrypt
uuid
regex
datetime
path
fs
compression
archive
image
audio
font
mime
json
html_comp
html_parser
html
ide
minlsp
html_ide
css_parser
css
css_ide
js_syntax
universal_parser
js_parser
js
js_cbi_lexer
js_ide
md_parser
md
md_ide
universal
universal_ide
page
net
tls
http
server
environment
process
window
webview
docgen
test_env
test
api
file_io.ch
Declarations in
file_io.ch
1
declarations
fs
Declarations
Public only
fs
#
Public
namespace
namespace
fs
file_read_exact
#
function
func
file_read_exact(f : *
File
, buf : *u8, buf_len : size_t) :
Result
<
UnitTy
,
FsError
>
copy
read_exact: read until buf_len bytes filled or error
file_write_all
#
function
func
file_write_all(f : *
File
, buf : *u8, buf_len : size_t) :
Result
<
UnitTy
,
FsError
>
copy
write_all: loop till all bytes written
int_to_str
#
function
func
int_to_str(v : int, out : *char, out_len : size_t) : size_t
copy
util
atomic_write
#
Public
function
func
atomic_write(path : *char, data : *u8, data_len : size_t) :
Result
<
UnitTy
,
FsError
>
copy
read_entire_file
#
Public
function
func
read_entire_file(path : *char) :
Result
<
vector
<u8>,
FsError
>
copy
read_to_buffer
#
Public
function
func
read_to_buffer(path : *char, buf : *u8, buf_len : size_t) :
Result
<size_t,
FsError
>
copy
write_text_file
#
Public
function
func
write_text_file(path : *char, data : *u8, data_len : size_t) :
Result
<
UnitTy
,
FsError
>
copy
move_path
#
Public
function
func
move_path(src : *char, dst : *char) :
Result
<
UnitTy
,
FsError
>
copy
Show Debug Info
Generated from: /home/runner/work/chemical/chemical/chemical-tcc/libs/fs/src/file_io.ch
File ID: 141
↑