MCPcopy Create free account
hub / github.com/cloudflare/recapn / new_data

Method new_data

recapn/src/orphan.rs:147–150  ·  view source on GitHub ↗
(&self, size: ElementCount)

Source from the content-addressed store, hash-verified

145
146 #[inline]
147 pub fn new_data(&self, size: ElementCount) -> Orphan<'a, Data, T> {
148 self.try_new_data(size)
149 .expect("failed to allocate data blob")
150 }
151
152 #[inline]
153 pub fn try_new_text(&self, size: text::ByteCount) -> Result<Orphan<'a, Text, T>> {

Callers

nothing calls this directly

Calls 1

try_new_dataMethod · 0.80

Tested by

no test coverage detected