ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.RubyGems.Marshal

Description

Bounded Ruby Marshal 4.8 data. Class names remain inert strings.

Synopsis

Documentation

decodeMarshal :: Limits -> ByteString -> Either ParseError MarshalValue Source #

Decode exactly one object, refusing unsupported tags, cycles and invalid references.

marshalText :: MarshalValue -> Either ParseError Text Source #

Require a valid UTF-8 native string, preserving its spelling.

stripInstanceVariables :: MarshalValue -> MarshalValue Source #

Remove inert encoding and instance-variable wrappers when reading scalar fields.

inertNodeBudget :: Limits -> Int Source #

The node and alias work one inert Marshal or YAML decode may do.