MCPcopy Index your code
hub / github.com/endbasic/endbasic / new_buffer

Method new_buffer

std/src/gfx/lcd/mod.rs:94–96  ·  view source on GitHub ↗

Creates a new buffer with enough capacity to hold the content of this LCD size for the given `stride``. The returned buffer is of zero size.

(&self, stride: usize)

Source from the content-addressed store, hash-verified

92 /// Creates a new buffer with enough capacity to hold the content of this LCD size for the given
93 /// `stride``. The returned buffer is of zero size.
94 fn new_buffer(&self, stride: usize) -> Vec<u8> {
95 Vec::with_capacity(self.width * self.height * stride)
96 }
97}
98
99impl From<LcdSize> for SizeInPixels {

Callers 4

test_lcdsize_new_bufferFunction · 0.80
fillMethod · 0.80
force_present_canvasMethod · 0.80
read_pixelsMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_lcdsize_new_bufferFunction · 0.64