scs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

SCS extraction code taken from https://github.com/Luzifer/scs-extract Slightly modified to support 4 GB+ SCS archives

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogEntry

type CatalogEntry struct {
	HashedPath uint64
	Offset     int64
	Type       EntryType
	CRC        uint32
	Size       int32
	ZSize      int32
}

type EntryType

type EntryType int32
const (
	EntryTypeUncompressedFile EntryType = iota
	EntryTypeUncompressedNames
	EntryTypeCompressedFile
	EntryTypeCompressedNames
	EntryTypeUncompressedFileCopy
	EntryTypeUncompressedNamesCopy
	EntryTypeCompressedFileCopy
	EntryTypeCompressedNamesCopy
)

See https://forum.scssoft.com/viewtopic.php?p=644638#p644638

type File

type File struct {
	Name string

	CatalogOffset int64

	CatalogEntry
	// contains filtered or unexported fields
}

func (*File) Open

func (f *File) Open() (io.ReadCloser, error)

type Reader

type Reader struct {
	Files []*File
}

func NewReader

func NewReader(r io.ReaderAt, size int64) (*Reader, error)

Jump to

Keyboard shortcuts

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