Versions in this module Expand all Collapse all v0 v0.1.0 Jun 10, 2024 Changes in this version + const ScBlockData + const ScEnum + const ScExternalizable + const ScSerializable + const ScWriteMethod + const StreamMagic + const StreamVersion + var ErrNoSuchClass = errors.New("no such class in object") + var ErrNoSuchField = errors.New("no such field in object") + var ErrNotSupported = errors.New("not supported") + func AddPackagePrefixes(prefixes ...string) + func AllowInt8ToByteCoercion() + func PreventInt8ToByteCoercion() + func SetPackagePrefixes(prefixes ...string) + func Unmarshal(data []byte, v any) error + func UnmarshalReader(r io.Reader, v any) error + type Annotation any + type Array struct + ClassDesc *Class + Values []Value + func (a Array) Get(index int) Value + func (a Array) ItemType() (TypeCode, string) + func (a Array) Length() int + type Class struct + ClassName string + Info ClassDescInfo + SerialVersionUID SerialVersionUID + type ClassData map[string]map[string]Value + type ClassDescFlags byte + func (f ClassDescFlags) HasWriteMethod() bool + func (f ClassDescFlags) IsSerializable() bool + type ClassDescInfo struct + ClassAnnotation []Annotation + Fields []Field + Flags ClassDescFlags + SuperClassDesc *Class + type Content any + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Decode() (Content, error) + func (d *Decoder) DecodeAll(limit int) ([]Content, error) + func (d *Decoder) Reset() + type Enum struct + ClassDesc *Class + ConstantName string + type Field struct + ClassName string + FieldName string + TypeCode TypeCode + type InvalidUnmarshalError struct + Type reflect.Type + func (e *InvalidUnmarshalError) Error() string + type Object struct + ClassData ClassData + ClassDesc *Class + func (o Object) GetClassName() string + func (o Object) GetField(name string) (any, error) + type SerialVersionUID int64 + type TypeCode byte + const TypeArray + const TypeBoolean + const TypeByte + const TypeChar + const TypeDouble + const TypeFloat + const TypeInteger + const TypeLong + const TypeObject + const TypeShort + func (t TypeCode) IsObject() bool + func (t TypeCode) IsPrimitive() bool + type Value any