MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / decode

Method decode

src/pgrepr/src/value.rs:655–664  ·  view source on GitHub ↗

Deserializes a value of type `ty` from `raw` using the specified `format`.

(
        format: Format,
        ty: &Type,
        raw: &[u8],
    )

Source from the content-addressed store, hash-verified

653 /// Deserializes a value of type `ty` from `raw` using the specified
654 /// `format`.
655 pub fn decode(
656 format: Format,
657 ty: &Type,
658 raw: &[u8],
659 ) -> Result<Value, Box<dyn Error + Sync + Send>> {
660 match format {
661 Format::Text => Value::decode_text(ty, raw),
662 Format::Binary => Value::decode_binary(ty, raw),
663 }
664 }
665
666 /// Deserializes a value of type `ty` from `raw` using the [text encoding
667 /// format](Format::Text).

Callers 15

workflow_nightlyFunction · 0.45
_terraform_apply_gcpFunction · 0.45
conversion_webhook_worksFunction · 0.45
apply_materializeFunction · 0.45
_port_forwardFunction · 0.45
validate_uploadFunction · 0.45
from_strMethod · 0.45
runMethod · 0.45
__str__Method · 0.45
__init__Method · 0.45
write_dockerfileMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected