Versions in this module Expand all Collapse all v1 v1.2.9 Aug 17, 2022 Changes in this version + type Content struct + Enums []Enum + Module string + Options ContentOptions + Size ContentSize + Structs []Struct + Tags []Tag + func (x *Content) Read(viewer *ContentViewer, reader *karmem.Reader) + func (x *Content) ReadAsRoot(reader *karmem.Reader) + func (x *Content) Reset() + func (x *Content) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *Content) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + type ContentOptions struct + Import string + Module string + Prefix string + func (x *ContentOptions) Read(viewer *ContentOptionsViewer, reader *karmem.Reader) + func (x *ContentOptions) ReadAsRoot(reader *karmem.Reader) + func (x *ContentOptions) Reset() + func (x *ContentOptions) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *ContentOptions) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + type ContentOptionsViewer struct + func NewContentOptionsViewer(reader *karmem.Reader, offset uint32) (v *ContentOptionsViewer) + func (x *ContentOptionsViewer) Import(reader *karmem.Reader) (v []byte) + func (x *ContentOptionsViewer) Module(reader *karmem.Reader) (v []byte) + func (x *ContentOptionsViewer) Prefix(reader *karmem.Reader) (v []byte) + type ContentSize struct + Largest uint32 + func (x *ContentSize) Read(viewer *ContentSizeViewer, reader *karmem.Reader) + func (x *ContentSize) ReadAsRoot(reader *karmem.Reader) + func (x *ContentSize) Reset() + func (x *ContentSize) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *ContentSize) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + type ContentSizeViewer struct + func NewContentSizeViewer(reader *karmem.Reader, offset uint32) (v *ContentSizeViewer) + func (x *ContentSizeViewer) Largest() (v uint32) + type ContentViewer struct + func NewContentViewer(reader *karmem.Reader, offset uint32) (v *ContentViewer) + func (x *ContentViewer) Enums(reader *karmem.Reader) (v []EnumViewer) + func (x *ContentViewer) Module(reader *karmem.Reader) (v []byte) + func (x *ContentViewer) Options(reader *karmem.Reader) (v *ContentOptionsViewer) + func (x *ContentViewer) Size(reader *karmem.Reader) (v *ContentSizeViewer) + func (x *ContentViewer) Structs(reader *karmem.Reader) (v []StructViewer) + func (x *ContentViewer) Tags(reader *karmem.Reader) (v []TagViewer) + type Enum struct + Data EnumData + func (x *Enum) Read(viewer *EnumViewer, reader *karmem.Reader) + func (x *Enum) ReadAsRoot(reader *karmem.Reader) + func (x *Enum) Reset() + func (x *Enum) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *Enum) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + type EnumData struct + Fields []EnumField + Name string + Type Type + func (x *EnumData) Read(viewer *EnumDataViewer, reader *karmem.Reader) + func (x *EnumData) ReadAsRoot(reader *karmem.Reader) + func (x *EnumData) Reset() + func (x *EnumData) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *EnumData) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + type EnumDataViewer struct + func NewEnumDataViewer(reader *karmem.Reader, offset uint32) (v *EnumDataViewer) + func (x *EnumDataViewer) Fields(reader *karmem.Reader) (v []EnumFieldViewer) + func (x *EnumDataViewer) Name(reader *karmem.Reader) (v []byte) + func (x *EnumDataViewer) Type(reader *karmem.Reader) (v *TypeViewer) + type EnumField struct + Data EnumFieldData + func (x *EnumField) Read(viewer *EnumFieldViewer, reader *karmem.Reader) + func (x *EnumField) ReadAsRoot(reader *karmem.Reader) + func (x *EnumField) Reset() + func (x *EnumField) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *EnumField) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + type EnumFieldData struct + Name string + Tags []Tag + Value string + func (x *EnumFieldData) Read(viewer *EnumFieldDataViewer, reader *karmem.Reader) + func (x *EnumFieldData) ReadAsRoot(reader *karmem.Reader) + func (x *EnumFieldData) Reset() + func (x *EnumFieldData) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *EnumFieldData) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + type EnumFieldDataViewer struct + func NewEnumFieldDataViewer(reader *karmem.Reader, offset uint32) (v *EnumFieldDataViewer) + func (x *EnumFieldDataViewer) Name(reader *karmem.Reader) (v []byte) + func (x *EnumFieldDataViewer) Tags(reader *karmem.Reader) (v []TagViewer) + func (x *EnumFieldDataViewer) Value(reader *karmem.Reader) (v []byte) + type EnumFieldViewer struct + func NewEnumFieldViewer(reader *karmem.Reader, offset uint32) (v *EnumFieldViewer) + func (x *EnumFieldViewer) Data(reader *karmem.Reader) (v *EnumFieldDataViewer) + type EnumViewer struct + func NewEnumViewer(reader *karmem.Reader, offset uint32) (v *EnumViewer) + func (x *EnumViewer) Data(reader *karmem.Reader) (v *EnumDataViewer) + type Reader struct + Parsed Content + func NewReader(path string, r io.Reader) *Reader + func (r *Reader) Parser() (d *Content, err error) + type Struct struct + Data StructData + func (x *Struct) Read(viewer *StructViewer, reader *karmem.Reader) + func (x *Struct) ReadAsRoot(reader *karmem.Reader) + func (x *Struct) Reset() + func (x *Struct) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *Struct) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + type StructClass uint8 + const StructClassInline + const StructClassNone + const StructClassTable + type StructData struct + Class StructClass + Fields []StructField + ID uint64 + Name string + Size StructSize + func (x *StructData) Read(viewer *StructDataViewer, reader *karmem.Reader) + func (x *StructData) ReadAsRoot(reader *karmem.Reader) + func (x *StructData) Reset() + func (x *StructData) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *StructData) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + func (x StructData) IsTable() bool + type StructDataViewer struct + func NewStructDataViewer(reader *karmem.Reader, offset uint32) (v *StructDataViewer) + func (x *StructDataViewer) Class() (v StructClass) + func (x *StructDataViewer) Fields(reader *karmem.Reader) (v []StructFieldViewer) + func (x *StructDataViewer) ID() (v uint64) + func (x *StructDataViewer) Name(reader *karmem.Reader) (v []byte) + func (x *StructDataViewer) Size(reader *karmem.Reader) (v *StructSizeViewer) + type StructField struct + Data StructFieldData + func (x *StructField) Read(viewer *StructFieldViewer, reader *karmem.Reader) + func (x *StructField) ReadAsRoot(reader *karmem.Reader) + func (x *StructField) Reset() + func (x *StructField) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *StructField) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + type StructFieldData struct + Name string + Offset uint32 + Size StructFieldSize + Tags []Tag + Type Type + func (x *StructFieldData) Read(viewer *StructFieldDataViewer, reader *karmem.Reader) + func (x *StructFieldData) ReadAsRoot(reader *karmem.Reader) + func (x *StructFieldData) Reset() + func (x *StructFieldData) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *StructFieldData) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + type StructFieldDataViewer struct + func NewStructFieldDataViewer(reader *karmem.Reader, offset uint32) (v *StructFieldDataViewer) + func (x *StructFieldDataViewer) Name(reader *karmem.Reader) (v []byte) + func (x *StructFieldDataViewer) Offset() (v uint32) + func (x *StructFieldDataViewer) Size(reader *karmem.Reader) (v *StructFieldSizeViewer) + func (x *StructFieldDataViewer) Tags(reader *karmem.Reader) (v []TagViewer) + func (x *StructFieldDataViewer) Type(reader *karmem.Reader) (v *TypeViewer) + type StructFieldSize struct + Allocation uint32 + Field uint32 + Minimum uint32 + func (x *StructFieldSize) Read(viewer *StructFieldSizeViewer, reader *karmem.Reader) + func (x *StructFieldSize) ReadAsRoot(reader *karmem.Reader) + func (x *StructFieldSize) Reset() + func (x *StructFieldSize) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *StructFieldSize) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + type StructFieldSizeViewer struct + func NewStructFieldSizeViewer(reader *karmem.Reader, offset uint32) (v *StructFieldSizeViewer) + func (x *StructFieldSizeViewer) Allocation() (v uint32) + func (x *StructFieldSizeViewer) Field() (v uint32) + func (x *StructFieldSizeViewer) Minimum() (v uint32) + type StructFieldViewer struct + func NewStructFieldViewer(reader *karmem.Reader, offset uint32) (v *StructFieldViewer) + func (x *StructFieldViewer) Data(reader *karmem.Reader) (v *StructFieldDataViewer) + type StructSize struct + Content uint32 + Minimum uint32 + Padding uint32 + Total uint32 + TotalGroup []uint8 + func (x *StructSize) Read(viewer *StructSizeViewer, reader *karmem.Reader) + func (x *StructSize) ReadAsRoot(reader *karmem.Reader) + func (x *StructSize) Reset() + func (x *StructSize) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *StructSize) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + type StructSizeViewer struct + func NewStructSizeViewer(reader *karmem.Reader, offset uint32) (v *StructSizeViewer) + func (x *StructSizeViewer) Content() (v uint32) + func (x *StructSizeViewer) Minimum() (v uint32) + func (x *StructSizeViewer) Padding() (v uint32) + func (x *StructSizeViewer) Total() (v uint32) + func (x *StructSizeViewer) TotalGroup(reader *karmem.Reader) (v []uint8) + type StructViewer struct + func NewStructViewer(reader *karmem.Reader, offset uint32) (v *StructViewer) + func (x *StructViewer) Data(reader *karmem.Reader) (v *StructDataViewer) + type Tag struct + Name string + Value string + func (x *Tag) Read(viewer *TagViewer, reader *karmem.Reader) + func (x *Tag) ReadAsRoot(reader *karmem.Reader) + func (x *Tag) Reset() + func (x *Tag) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *Tag) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + type TagViewer struct + func NewTagViewer(reader *karmem.Reader, offset uint32) (v *TagViewer) + func (x *TagViewer) Name(reader *karmem.Reader) (v []byte) + func (x *TagViewer) Value(reader *karmem.Reader) (v []byte) + type Tags []Tag + func (x Tags) Get(s string) (string, bool) + type Type struct + Format TypeFormat + Length uint32 + Model TypeModel + PlainSchema string + Schema string + func (x *Type) IsArray() bool + func (x *Type) IsBasic() bool + func (x *Type) IsBool() bool + func (x *Type) IsEnum() bool + func (x *Type) IsInline() bool + func (x *Type) IsInteger() bool + func (x *Type) IsLimited() bool + func (x *Type) IsNative() bool + func (x *Type) IsSlice() bool + func (x *Type) IsString() bool + func (x *Type) Read(viewer *TypeViewer, reader *karmem.Reader) + func (x *Type) ReadAsRoot(reader *karmem.Reader) + func (x *Type) Reset() + func (x *Type) Write(writer *karmem.Writer, start uint) (offset uint, err error) + func (x *Type) WriteAsRoot(writer *karmem.Writer) (offset uint, err error) + type TypeFormat uint8 + const TypeFormatEnum + const TypeFormatNone + const TypeFormatPrimitive + const TypeFormatStruct + const TypeFormatTable + type TypeModel uint8 + const TypeModelArray + const TypeModelNone + const TypeModelSingle + const TypeModelSlice + const TypeModelSliceLimited + type TypeViewer struct + func NewTypeViewer(reader *karmem.Reader, offset uint32) (v *TypeViewer) + func (x *TypeViewer) Format() (v TypeFormat) + func (x *TypeViewer) Length() (v uint32) + func (x *TypeViewer) Model() (v TypeModel) + func (x *TypeViewer) PlainSchema(reader *karmem.Reader) (v []byte) + func (x *TypeViewer) Schema(reader *karmem.Reader) (v []byte) v1.0.0 May 17, 2022