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

Method simple

crates/vm/src/protocol/buffer.rs:177–185  ·  view source on GitHub ↗
(bytes_len: usize, readonly: bool)

Source from the content-addressed store, hash-verified

175
176impl BufferDescriptor {
177 pub fn simple(bytes_len: usize, readonly: bool) -> Self {
178 Self {
179 len: bytes_len,
180 readonly,
181 itemsize: 1,
182 format: Cow::Borrowed("B"),
183 dim_desc: vec![(bytes_len, 1, 0)],
184 }
185 }
186
187 pub fn format(
188 bytes_len: usize,

Callers

nothing calls this directly

Calls 1

BorrowedClass · 0.85

Tested by

no test coverage detected