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

Method new_bytearray

crates/vm/src/vm/context.rs:563–565  ·  view source on GitHub ↗
(&self, data: Vec<u8>)

Source from the content-addressed store, hash-verified

561
562 #[inline]
563 pub fn new_bytearray(&self, data: Vec<u8>) -> PyRef<PyByteArray> {
564 PyByteArray::from(data).into_ref(self)
565 }
566
567 #[inline(always)]
568 pub fn new_bool(&self, b: bool) -> PyRef<PyBool> {

Callers 6

_getitemMethod · 0.80
splitMethod · 0.80
rsplitMethod · 0.80
partitionMethod · 0.80
rpartitionMethod · 0.80
splitlinesMethod · 0.80

Calls 1

into_refMethod · 0.45

Tested by

no test coverage detected