41 static Result<std::vector<uint8_t>> ToBytes(
const PrimitiveType& type,
42 const Literal::Value& value);
47 static Result<std::vector<uint8_t>> ToBytes(
const Literal& literal);
54 static Result<Literal::Value> FromBytes(
const PrimitiveType& type,
55 std::span<const uint8_t> data);
61 static Result<Literal> FromBytes(std::shared_ptr<PrimitiveType> type,
62 std::span<const uint8_t> data);