Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ray-D-Song/lexe
/ as_bytes
Method
as_bytes
modules/llrt_buffer/src/array_buffer_view.rs:140–144 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
138
}
139
140
pub fn as_bytes(&self) -> Option<&[u8]> {
141
self.buffer
142
.as_ref()
143
.map(|b| unsafe { std::slice::from_raw_parts(b.ptr.as_ptr(), b.len) })
144
}
145
146
/// Mutable buffer for the view.
147
///
Callers
15
to_string
Method · 0.45
alloc
Function · 0.45
byte_length
Function · 0.45
from
Function · 0.45
copy
Function · 0.45
safe_byte_slice
Function · 0.45
atob
Function · 0.45
btoa
Function · 0.45
zlib_converter
Function · 0.45
brotli_converter
Function · 0.45
from_http_headers
Method · 0.45
bytes_from_parts
Function · 0.45
Calls
1
as_ref
Method · 0.80
Tested by
1
test_fetch_function
Function · 0.36