parser

package
v0.0.0-...-97dc81b Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DEBUG *bool
)

Functions

func Debug

func Debug(arg interface{})

func DebugPrint

func DebugPrint(fmt_str string, v ...interface{})

func DlvBreak

func DlvBreak()

func ParseInt32

func ParseInt32(reader io.ReaderAt, offset int64) int32

func ParseInt8

func ParseInt8(reader io.ReaderAt, offset int64) int8

func ParseString

func ParseString(reader io.ReaderAt, offset int64, length int64) string

func ParseTerminatedString

func ParseTerminatedString(reader io.ReaderAt, offset int64) string

func ParseUint16

func ParseUint16(reader io.ReaderAt, offset int64) uint16

func ParseUint32

func ParseUint32(reader io.ReaderAt, offset int64) uint32

func ParseUint64

func ParseUint64(reader io.ReaderAt, offset int64) uint64

func SetDebug

func SetDebug()

func UTF16ToUTF8

func UTF16ToUTF8(in string) string

Types

type EWFFile

type EWFFile struct {
	ChunkSize      int64
	NumberOfChunks int64
	TotalImageSize int64

	Metadata *ordereddict.Dict

	Tables []chunk

	Hits int64
	Miss int64

	Files []*EWF_file_header_v1

	// All the descriptors in the correct order.
	Descriptors []*EWF_section_descriptor_v1
	// contains filtered or unexported fields
}

func OpenEWFFile

func OpenEWFFile(options *EWFOptions, readers ...io.ReaderAt) (
	*EWFFile, error)

func (*EWFFile) ReadAt

func (self *EWFFile) ReadAt(buf []byte, offset int64) (int, error)

func (*EWFFile) WriteDebug

func (self *EWFFile) WriteDebug(w io.Writer)

type EWFOptions

type EWFOptions struct {
	LRUSize int
}

type EWFProfile

type EWFProfile struct {
	Off_EWF_file_header_v1_EVF_sig            int64
	Off_EWF_file_header_v1_Fields_start       int64
	Off_EWF_file_header_v1_Segment_number     int64
	Off_EWF_file_header_v1_Fields_end         int64
	Off_EWF_file_header_v1_Descriptor         int64
	Off_EWF_file_header_v2_EVF_sig            int64
	Off_EWF_file_header_v2_Major_version      int64
	Off_EWF_file_header_v2_Minor_version      int64
	Off_EWF_file_header_v2_Compression_method int64
	Off_EWF_file_header_v2_Segment_number     int64
	Off_EWF_file_header_v2_Set_identifier     int64
	Off_EWF_section_descriptor_v1_Type        int64
	Off_EWF_section_descriptor_v1_Next        int64
	Off_EWF_section_descriptor_v1_SectionSize int64
	Off_EWF_section_descriptor_v1_Checksum    int64
	Off_EWF_table_entry_Compressed            int64
	Off_EWF_table_entry_ChunkOffset           int64
	Off_EWF_table_header_v1_Number_of_entries int64
	Off_EWF_table_header_v1_Base_offset       int64
	Off_EWF_table_header_v1_Checksum          int64
	Off_EWF_table_header_v1_Entries           int64
	Off_EWF_volume_Media_type                 int64
	Off_EWF_volume_Number_of_chunks           int64
	Off_EWF_volume_Sectors_per_chunk          int64
	Off_EWF_volume_Bytes_per_sector           int64
	Off_EWF_volume_Number_of_sectors          int64
	Off_EWF_volume_Chs_cylinders              int64
	Off_EWF_volume_Chs_heads                  int64
	Off_EWF_volume_Chs_sectors                int64
	Off_EWF_volume_Media_flags                int64
	Off_EWF_volume_Compression_level          int64
	Off_EWF_volume_Checksum                   int64
}

func NewEWFProfile

func NewEWFProfile() *EWFProfile

func (*EWFProfile) EWF_file_header_v1

func (self *EWFProfile) EWF_file_header_v1(reader io.ReaderAt, offset int64) *EWF_file_header_v1

func (*EWFProfile) EWF_file_header_v2

func (self *EWFProfile) EWF_file_header_v2(reader io.ReaderAt, offset int64) *EWF_file_header_v2

func (*EWFProfile) EWF_section_descriptor_v1

func (self *EWFProfile) EWF_section_descriptor_v1(reader io.ReaderAt, offset int64) *EWF_section_descriptor_v1

func (*EWFProfile) EWF_table_entry

func (self *EWFProfile) EWF_table_entry(reader io.ReaderAt, offset int64) *EWF_table_entry

func (*EWFProfile) EWF_table_header_v1

func (self *EWFProfile) EWF_table_header_v1(reader io.ReaderAt, offset int64) *EWF_table_header_v1

func (*EWFProfile) EWF_volume

func (self *EWFProfile) EWF_volume(reader io.ReaderAt, offset int64) *EWF_volume

type EWF_file_header_v1

type EWF_file_header_v1 struct {
	Reader  io.ReaderAt
	Offset  int64
	Profile *EWFProfile
}

func (*EWF_file_header_v1) DebugString

func (self *EWF_file_header_v1) DebugString() string

func (*EWF_file_header_v1) Descriptor

func (self *EWF_file_header_v1) Descriptor() *EWF_section_descriptor_v1

func (*EWF_file_header_v1) EVF_sig

func (self *EWF_file_header_v1) EVF_sig() string

func (*EWF_file_header_v1) Fields_end

func (self *EWF_file_header_v1) Fields_end() uint16

func (*EWF_file_header_v1) Fields_start

func (self *EWF_file_header_v1) Fields_start() int8

func (*EWF_file_header_v1) Segment_number

func (self *EWF_file_header_v1) Segment_number() uint16

func (*EWF_file_header_v1) Size

func (self *EWF_file_header_v1) Size() int

type EWF_file_header_v2

type EWF_file_header_v2 struct {
	Reader  io.ReaderAt
	Offset  int64
	Profile *EWFProfile
}

func (*EWF_file_header_v2) Compression_method

func (self *EWF_file_header_v2) Compression_method() *Enumeration

func (*EWF_file_header_v2) DebugString

func (self *EWF_file_header_v2) DebugString() string

func (*EWF_file_header_v2) EVF_sig

func (self *EWF_file_header_v2) EVF_sig() string

func (*EWF_file_header_v2) Major_version

func (self *EWF_file_header_v2) Major_version() int8

func (*EWF_file_header_v2) Minor_version

func (self *EWF_file_header_v2) Minor_version() int8

func (*EWF_file_header_v2) Segment_number

func (self *EWF_file_header_v2) Segment_number() uint16

func (*EWF_file_header_v2) Set_identifier

func (self *EWF_file_header_v2) Set_identifier() string

func (*EWF_file_header_v2) Size

func (self *EWF_file_header_v2) Size() int

type EWF_section_descriptor_v1

type EWF_section_descriptor_v1 struct {
	Reader  io.ReaderAt
	Offset  int64
	Profile *EWFProfile
}

func (*EWF_section_descriptor_v1) Checksum

func (self *EWF_section_descriptor_v1) Checksum() uint32

func (*EWF_section_descriptor_v1) DebugString

func (self *EWF_section_descriptor_v1) DebugString() string

func (*EWF_section_descriptor_v1) Next

func (*EWF_section_descriptor_v1) SectionSize

func (self *EWF_section_descriptor_v1) SectionSize() uint64

func (*EWF_section_descriptor_v1) Size

func (self *EWF_section_descriptor_v1) Size() int

func (*EWF_section_descriptor_v1) Type

func (self *EWF_section_descriptor_v1) Type() string

type EWF_table_entry

type EWF_table_entry struct {
	Reader  io.ReaderAt
	Offset  int64
	Profile *EWFProfile
}

func (*EWF_table_entry) ChunkOffset

func (self *EWF_table_entry) ChunkOffset() uint64

func (*EWF_table_entry) Compressed

func (self *EWF_table_entry) Compressed() uint64

func (*EWF_table_entry) DebugString

func (self *EWF_table_entry) DebugString() string

func (*EWF_table_entry) Size

func (self *EWF_table_entry) Size() int

type EWF_table_header_v1

type EWF_table_header_v1 struct {
	Reader  io.ReaderAt
	Offset  int64
	Profile *EWFProfile
}

func (*EWF_table_header_v1) Base_offset

func (self *EWF_table_header_v1) Base_offset() uint64

func (*EWF_table_header_v1) Checksum

func (self *EWF_table_header_v1) Checksum() uint32

func (*EWF_table_header_v1) DebugString

func (self *EWF_table_header_v1) DebugString() string

func (*EWF_table_header_v1) Entries

func (self *EWF_table_header_v1) Entries() *EWF_table_entry

func (*EWF_table_header_v1) Number_of_entries

func (self *EWF_table_header_v1) Number_of_entries() uint64

func (*EWF_table_header_v1) Size

func (self *EWF_table_header_v1) Size() int

type EWF_volume

type EWF_volume struct {
	Reader  io.ReaderAt
	Offset  int64
	Profile *EWFProfile
}

func (*EWF_volume) Bytes_per_sector

func (self *EWF_volume) Bytes_per_sector() uint32

func (*EWF_volume) Checksum

func (self *EWF_volume) Checksum() int32

func (*EWF_volume) Chs_cylinders

func (self *EWF_volume) Chs_cylinders() uint32

func (*EWF_volume) Chs_heads

func (self *EWF_volume) Chs_heads() uint32

func (*EWF_volume) Chs_sectors

func (self *EWF_volume) Chs_sectors() uint32

func (*EWF_volume) Compression_level

func (self *EWF_volume) Compression_level() *Enumeration

func (*EWF_volume) DebugString

func (self *EWF_volume) DebugString() string

func (*EWF_volume) Media_flags

func (self *EWF_volume) Media_flags() *Flags

func (*EWF_volume) Media_type

func (self *EWF_volume) Media_type() *Enumeration

func (*EWF_volume) Number_of_chunks

func (self *EWF_volume) Number_of_chunks() uint32

func (*EWF_volume) Number_of_sectors

func (self *EWF_volume) Number_of_sectors() uint64

func (*EWF_volume) Sectors_per_chunk

func (self *EWF_volume) Sectors_per_chunk() uint32

func (*EWF_volume) Size

func (self *EWF_volume) Size() int

type Enumeration

type Enumeration struct {
	Value uint64
	Name  string
}

func (Enumeration) DebugString

func (self Enumeration) DebugString() string

type Flags

type Flags struct {
	Value uint64
	Names map[string]bool
}

func (Flags) DebugString

func (self Flags) DebugString() string

func (Flags) IsSet

func (self Flags) IsSet(flag string) bool

func (Flags) Values

func (self Flags) Values() []string

Jump to

Keyboard shortcuts

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