lzfse

package module
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 3 Imported by: 0

README

go-lzfse

GoDoc License

Go bindings for lzfse compression.


Install

go get github.com/iineva/go-lzfse

Examples

import (
    "io/ioutil"
    "log"

    lzfse "github.com/iineva/go-lzfse"
    "github.com/pkg/errors"
)

func main() {

    dat, err := ioutil.ReadFile("encoded.file")
    if err != nil {
        log.Fatal(errors.Wrap(err, "failed to read compressed file"))
    }

    decompressed = lzfse.DecodeBuffer(dat)

    err = ioutil.WriteFile("decoded.file", decompressed, 0644)
    if err != nil {
        log.Fatal(errors.Wrap(err, "failed to decompress file"))
    }
}

Credit

License

MIT Copyright (c) 2019 blacktop

Documentation

Overview

Package lzfse provides Go bindings for lzfse.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBuffer

func DecodeBuffer(srcBuffer []byte) []byte

DecodeBuffer function as declared in go-lzfse/lzfse.h:126

func DecodeScratchSize

func DecodeScratchSize() uint

DecodeScratchSize function as declared in go-lzfse/lzfse.h:94

func EncodeBuffer

func EncodeBuffer(dstBuffer []byte, dstSize uint, srcBuffer string, srcSize uint, scratchBuffer unsafe.Pointer) uint

EncodeBuffer function as declared in go-lzfse/lzfse.h:87

func EncodeScratchSize

func EncodeScratchSize() uint

EncodeScratchSize function as declared in go-lzfse/lzfse.h:56

Types

This section is empty.

Jump to

Keyboard shortcuts

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