Skip to content

PretendoNetwork/ASH0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

ASH0 decompression written in native go

GoDoc

How to install and use

  1. Install the package with the command go get https://github.com/PretendoNetwork/ASH0

  2. Import the ash0 package into your project

import (
	"github/PretendoNetwork/ASH0"
)
  1. Load your ash0 file into a uint8 slice
// Note: myFuncThatLoadsAFileIntoAByteSlice() is not included with the ash0 package
data := myFuncThatLoadsAFileIntoAByteSlice("myfile.ash")
  1. (Optional) Check if the file is a compressed ash0 file
if !ash0.IsAshCompressed(data) {
	// Oh no! It's not a compressed ash0 file!
}
  1. Decompress the file
out := ash0.Decompress(data)

Notes

  • If you're running the code on a big endian machine, be sure to set the IsLittleEndian boolean to false
  • There's a lot of pointer arithmetic in the source code, so if VSCode warns you about Possible misuse of unsafe.Pointer, just laugh it off
  • If you have any questions feel free to ask me in the Pretendo discord (make sure to ping me @Nybbit#5412)

About

ASH0 decompression, written in go

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published