compressionid

package module
v0.0.0-...-ddd1d76 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 15 Imported by: 0

README

About

Tooling for identifying unknown compressed data.

Supported compression methods

  • DEFLATE
  • ZLIB
  • LZO1X
  • LZ4
  • LZW (LSB, 8-bit)
  • LZW (MSB, 8-bit)

Tools

compressionid - Detect compression method from input file.

compressionid-packer - Companion app to create compressed files.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressFromReader

func CompressFromReader(method string, r io.Reader) ([]byte, error)

func InitLogging

func InitLogging()

Types

type CompressionKind

type CompressionKind int
const (
	ZLib  CompressionKind = iota
	Flate                 // (de)FLATE compression
	Lzma
	Lzma2
	Lzss
	Lzo1X
	Lz4
	Lz77a    // Lz77, variant #a
	Lz77b    // Lz77, variant #b
	Lzw_LSB8 // LSB, 8-bit
	Lzw_MSB8 // MSB, 8-bit
)

func TryExtract

func TryExtract(r io.Reader) (CompressionKind, []byte, error)

func (CompressionKind) String

func (k CompressionKind) String() string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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