MCPcopy Create free account
hub / github.com/awslabs/llrt / write

Method write

modules/llrt_string_decoder/src/string_decoder.rs:255–260  ·  view source on GitHub ↗
(&mut self, ctx: Ctx<'_>, buffer: ArrayBufferView<'_>)

Source from the content-addressed store, hash-verified

253 }
254
255 pub fn write(&mut self, ctx: Ctx<'_>, buffer: ArrayBufferView<'_>) -> Result<String> {
256 let data = buffer
257 .as_bytes()
258 .or_throw_msg(&ctx, "Buffer has already been used")?;
259 self.decode_data(&ctx, data)
260 }
261}

Callers 3

testDecodeFunction · 0.95
testEndFunction · 0.95
testBufFunction · 0.95

Calls 3

or_throw_msgMethod · 0.80
decode_dataMethod · 0.80
as_bytesMethod · 0.45

Tested by 3

testDecodeFunction · 0.76
testEndFunction · 0.76
testBufFunction · 0.76