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

Method decode_sprite_id

canvas/src/decoding.rs:1211–1214  ·  view source on GitHub ↗

Consumes characters until we have a sprite ID

(next_chr: char, param: String)

Source from the content-addressed store, hash-verified

1209 /// Consumes characters until we have a sprite ID
1210 ///
1211 fn decode_sprite_id(next_chr: char, param: String) -> Result<PartialResult<SpriteId>, DecoderError> {
1212 Self::decode_compact_id(next_chr, param)
1213 .map(|id| id.map(|id| SpriteId(id)))
1214 }
1215
1216 ///
1217 /// Consumes characters until we have a layer ID

Callers

nothing calls this directly

Calls 2

SpriteIdClass · 0.85
mapMethod · 0.80

Tested by

no test coverage detected