AT

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTextString

func GetTextString(file *os.File, a int64) string

Types

type AttFile

type AttFile struct {
	Name         string
	Type         string
	Comment      string
	Path         string
	CreatorIndex string
	// contains filtered or unexported fields
}

func Get

func Get(f *os.File, a int64) []AttFile

func (AttFile) Save

func (a AttFile) Save(file *os.File, outputPath string) AttFile

type Block

type Block struct {
	Header  blocks.Header
	Link    Link
	Data    Data
	Address int64
}

func New

func New(file *os.File, startAdress int64) *Block

func (*Block) BlankBlock

func (b *Block) BlankBlock() *Block

func (*Block) GetFileName

func (b *Block) GetFileName(file *os.File, a int64) string

func (*Block) GetMdComment

func (b *Block) GetMdComment() int64

func (*Block) GetMimeType

func (b *Block) GetMimeType(file *os.File, a int64) string

func (*Block) GetTxFilename

func (b *Block) GetTxFilename() int64

func (*Block) GetTxMimeType

func (b *Block) GetTxMimeType() int64

func (*Block) LoadAttachmentFile

func (b *Block) LoadAttachmentFile(file *os.File) *AttFile

func (*Block) Next

func (b *Block) Next() int64

type Data

type Data struct {
	Flags uint16
	// Creator index, i.e. zero-based index of FHBLOCK in global list
	// of FHBLOCKs that specifies which application has created this attachment,
	// or changed it most recently.
	CreatorIndex uint16
	Reserved     [4]byte
	// 128-bit value for MD5 check sum. Only valid if "MD5 check sum valid"
	// flag (bit 2) is set.
	MD5Checksum [16]byte
	// Original data size in Bytes, i.e. either for external file or for
	// compressed data.
	OriginalSize uint64

	// Embedded data size N, i.e. number of Bytes for binary embedded data
	// following this element.
	EmbeddedSize uint64

	//Contains binary embedded data
	EmbeddedData []byte
}
type Link struct {
	Next       int64 //Link to next ATBLOCK
	TxFilename int64 //Link to TXBLOCK
	TxMimetype int64 //LINK to TXBLOCK
	MDComment  int64 //Link to MDBLOCK
}

Jump to

Keyboard shortcuts

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