MCPcopy Create free account
hub / github.com/Logicalshift/flo_draw / to_bytes

Method to_bytes

canvas/src/decoding.rs:170–175  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

168 /// Returns the string matched by this decoder (once it's ready)
169 ///
170 #[inline] fn to_bytes(self) -> Result<Vec<u8>, DecoderError> {
171 match self.byte_encoding {
172 PartialResult::FullMatch(bytes) => Ok(bytes),
173 PartialResult::MatchMore(_) => Err(DecoderError::NotReady)
174 }
175 }
176
177 ///
178 /// Decodes a single character and returns the new state of the decoder

Callers 2

decode_font_data_ttfMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected