header

package
v0.0.0-...-e22344b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeaderCS6

type HeaderCS6 struct {
	Version           uint32
	BoundingRectangle *shape.Rectangle
	GroupName         string
	NumSlices         uint32
}

func CastBackCS6

func CastBackCS6(headerInterface HeaderInterface) *HeaderCS6

castBackCS6 and castBackCS7 are done here to prevent cyclic imports in the header packages

func NewCS6Header

func NewCS6Header() *HeaderCS6

func (HeaderCS6) GetHeaderVersion

func (headerCS6 HeaderCS6) GetHeaderVersion() uint16

func (*HeaderCS6) Parse

func (header *HeaderCS6) Parse(file *os.File)

type HeaderCS7

type HeaderCS7 struct {
	Version           uint32
	DescriptorVersion uint32
	Descriptor        *descriptor.Descriptor
}

HeaderCS7 is for both CS7 and CS8. it is denoted to 7 since that changes from 6, where 7 and 8 are the same

func CastBackCS7

func CastBackCS7(headerInterface HeaderInterface) *HeaderCS7

func NewCS7Header

func NewCS7Header() *HeaderCS7

func (HeaderCS7) GetHeaderVersion

func (headerCS7 HeaderCS7) GetHeaderVersion() uint16

func (*HeaderCS7) Parse

func (header *HeaderCS7) Parse(file *os.File)

type HeaderInterface

type HeaderInterface interface {
	GetHeaderVersion() uint16
}

func ParseHeader

func ParseHeader(file *os.File, version uint32) *HeaderInterface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL