MCPcopy Index your code
hub / github.com/RustPython/RustPython / to_vec

Method to_vec

crates/stdlib/src/compression.rs:101–103  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

99 self.data1.is_empty()
100 }
101 pub fn to_vec(&self) -> Vec<u8> {
102 [self.data1, self.data2].concat()
103 }
104 pub fn chunk(&self) -> &'a [u8] {
105 self.data1.get(..CHUNKSIZE).unwrap_or(self.data1)
106 }

Callers 15

mainFunction · 0.80
_msg_callbackFunction · 0.80
set_ecdh_curveMethod · 0.80
_set_alpn_protocolsMethod · 0.80
idMethod · 0.80
shareMethod · 0.80
inet_ptonFunction · 0.80
fcntlFunction · 0.80
ioctlFunction · 0.80
move_Method · 0.80
readMethod · 0.80

Calls 1

concatMethod · 0.45

Tested by 1

miri_test_dropFunction · 0.64