Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kixunil/genio
/ functions
Functions
102 in github.com/Kixunil/genio
⨍
Functions
102
◇
Types & classes
41
↓ 48 callers
Method
len
(&self)
src/bufio.rs:143
↓ 11 callers
Method
write_all
Attempts to write an entire buffer into this `Write`.
src/lib.rs:325
↓ 8 callers
Method
read_exact
Read the exact number of bytes required to fill `buf`. This function reads as many bytes as necessary to completely fill the specified buffer `buf`.
src/lib.rs:95
↓ 4 callers
Method
available
Gets the number of bytes in the buffer. This is the amount of data that can be returned immediately, without reading from the wrapped reader.
src/bufio.rs:182
↓ 3 callers
Method
as_raw_buf
(&mut self)
src/bufio.rs:139
↓ 2 callers
Method
as_ref
Get `IOError` containing references to errors.
src/error.rs:33
↓ 2 callers
Method
flush
(&mut self)
src/bufio.rs:319
↓ 2 callers
Method
read
(&mut self, buf: &mut [u8])
src/bufio.rs:191
↓ 2 callers
Method
read
(&mut self, buf: &mut [u8])
src/lib.rs:448
↓ 2 callers
Method
read
(&mut self, _buf: &mut [u8])
src/std_impls.rs:149
↓ 1 callers
Method
available_bytes
(&self, at_least: usize)
src/lib.rs:498
↓ 1 callers
Method
consume
(&mut self, amount: usize)
src/bufio.rs:27
↓ 1 callers
Method
extend_from_reader
( &mut self, reader: &mut R, )
src/std_impls.rs:85
↓ 1 callers
Method
extend_from_reader_slow
( &mut self, reader: &mut R, )
src/std_impls.rs:59
↓ 1 callers
Method
fill_buf
(&mut self)
src/bufio.rs:23
↓ 1 callers
Method
flush_if_full
(&mut self)
src/bufio.rs:279
↓ 1 callers
Method
read
(&mut self, _buf: &mut [u8])
src/util/empty.rs:10
↓ 1 callers
Method
read_ext
( &'a mut self, buf: &'b mut [u8], )
src/ext.rs:64
↓ 1 callers
Method
request_buffer
(&mut self)
src/bufio.rs:338
↓ 1 callers
Method
require_bytes
( &mut self, amount: usize, )
src/bufio.rs:77
↓ 1 callers
Method
submit_buffer
(&mut self, size: usize)
src/bufio.rs:349
↓ 1 callers
Method
write
(&mut self, buf: &[u8])
src/lib.rs:457
↓ 1 callers
Method
write_all
(&mut self, mut buf: &[u8])
src/util/write_trunc.rs:49
Method
as_ref_mut
Get `IOError` containing mutable references to errors.
src/error.rs:41
Method
available_bytes
Hints whether there are at least `at_least` bytes available. This function should return true if it can't determine exact amount. That is also defaul
src/lib.rs:119
Method
by_ref
Creates a "by reference" adaptor for this instance of `Read`. The returned adaptor also implements `Read` and will simply borrow this current reader.
src/lib.rs:157
Method
chain
Chains another reader after `self`. When self ends (returns Ok(0)), the other reader will provide bytes to read.
src/lib.rs:125
Function
copy
Copies the entire contents of a reader into a writer. This function will continuously read data from reader and then write it into writer in a stream
src/util/mod.rs:38
Method
end
(&mut self)
src/util/write_only.rs:44
Method
fill_progress
(&mut self)
src/bufio.rs:222
Method
flush
(&mut self)
src/lib.rs:461
Method
flush
(&mut self)
src/std_impls.rs:24
Method
flush
(&mut self)
src/util/sink.rs:15
Method
flush
(&mut self)
src/util/write_only.rs:30
Method
flush
(&mut self)
src/util/write_trunc.rs:65
Method
flush
(&mut self)
src/util/restarting.rs:62
Method
fmt
(&self, f: &mut fmt::Formatter)
src/error.rs:179
Method
from
(e: E)
src/error.rs:62
Method
from
(writer: W)
src/util/write_only.rs:17
Method
hole
(&mut self)
src/util/write_only.rs:48
Method
insert_placeholder
(&mut self, size: usize)
src/util/write_only.rs:56
Method
into_inner
Unwraps inner reader. Any data in the internal buffer is lost.
src/bufio.rs:174
Method
into_inner
Unwraps inner reader.
src/std_impls.rs:164
Method
into_inner
Converts to lower-level reader.
src/util/restarting.rs:20
Method
into_intr_error
(self)
src/error.rs:132
Method
merge
Merges the variants into common type.
src/error.rs:21
Method
new
Creates buffered reader.
src/bufio.rs:160
Method
new
Wraps `genio` reader into `std` reader.
src/std_impls.rs:159
Method
new
(writer: W)
src/util/write_only.rs:11
Method
new
Initializes truncate.
src/util/write_trunc.rs:13
Method
new
Creates restarting IO.
src/util/restarting.rs:15
Method
new
Creates the iterator.
src/util/bytes.rs:12
Method
new
Creates chain of readers.
src/util/chain.rs:16
Method
next
(&mut self)
src/util/bytes.rs:20
Method
read
(&mut self, buf: &mut [u8])
src/util/repeat.rs:14
Method
read
(&mut self, buf: &mut [u8])
src/util/restarting.rs:44
Method
read
(&mut self, buf: &mut [u8])
src/util/repeat_bytes.rs:13
Method
read
(&mut self, buf: &mut [u8])
src/util/chain.rs:28
Method
read_f32
(&mut self)
src/lib.rs:215
Method
read_f64
(&mut self)
src/lib.rs:224
Method
read_i16
(&mut self)
src/lib.rs:190
Method
read_i32
(&mut self)
src/lib.rs:198
Method
read_i64
(&mut self)
src/lib.rs:206
Method
read_to_end
Reads all bytes into any type that can be extended by a reader. This is more generic than the case of `std::io` and might enable some optimizations.
src/lib.rs:136
Method
read_u16
(&mut self)
src/lib.rs:166
Method
read_u32
(&mut self)
src/lib.rs:174
Method
read_u64
(&mut self)
src/lib.rs:182
Method
remaining_bytes
Returns how many bytes remain until they will be truncated.
src/util/write_trunc.rs:21
Method
request_buffer
(&mut self)
src/std_impls.rs:38
Method
require_bytes
Helps mapping `ReadResult` to `ReadExactError` # Example Assuming a function returns `ReadExactError<T>` ```no_compile let bytes = reader.read_ext(&
src/ext.rs:23
Method
restart_call
( mut f: F, )
src/util/restarting.rs:24
Method
size_hint
(&mut self, bytes: usize)
src/bufio.rs:328
Method
size_hint
(&mut self, bytes: usize)
src/lib.rs:465
Method
size_hint
(&mut self, bytes: usize)
src/std_impls.rs:28
Method
size_hint
(&mut self, _bytes: usize)
src/util/sink.rs:19
Method
size_hint
(&mut self, min: usize, max: Option<usize>)
src/util/write_only.rs:34
Method
size_hint
(&mut self, bytes: usize)
src/util/write_trunc.rs:69
Method
size_hint
(&mut self, bytes: usize)
src/util/restarting.rs:66
Method
submit_buffer
(&mut self, size: usize)
src/std_impls.rs:48
Method
uses_size_hint
(&self)
src/bufio.rs:332
Method
uses_size_hint
Reports to the caller whether size hint is actually used. This can prevent costly computation of size hint that would be thrown away.
src/lib.rs:350
Method
uses_size_hint
Reports to the caller whether size hint is actually used. This can prevent costly computation of size hint that would be thrown away.
src/lib.rs:471
Method
uses_size_hint
(&self)
src/std_impls.rs:32
Method
uses_size_hint
(&self)
src/util/write_trunc.rs:77
Method
uses_size_hint
(&self)
src/util/restarting.rs:70
Method
write
(&mut self, data: &[u8])
src/bufio.rs:292
Method
write
(&mut self, buf: &[u8])
src/std_impls.rs:19
Method
write
(&mut self, buf: &[u8])
src/util/sink.rs:11
Method
write
(&mut self, buf: &[u8])
src/util/write_only.rs:26
Method
write
(&mut self, mut buf: &[u8])
src/util/write_trunc.rs:30
Method
write
(&mut self, buf: &[u8])
src/util/restarting.rs:58
Method
write_byte
Writes single byte. Since this is buffered, the operation will be efficient.
src/bufio.rs:108
Method
write_f32
(&mut self, val: f32)
src/lib.rs:430
Method
write_f64
(&mut self, val: f64)
src/lib.rs:438
Method
write_i16
(&mut self, val: i16)
src/lib.rs:395
Method
write_i32
(&mut self, val: i32)
src/lib.rs:403
Method
write_i64
(&mut self, val: i64)
src/lib.rs:411
Method
write_int
(&mut self, val: i64, bytes: usize)
src/lib.rs:422
Method
write_u16
(&mut self, val: u16)
src/lib.rs:356
Method
write_u32
(&mut self, val: u32)
src/lib.rs:364
next →
1–100 of 102, ranked by callers