Skip to content

Commit

Permalink
Added readme, tidying up files
Browse files Browse the repository at this point in the history
  • Loading branch information
ist17002 committed Apr 22, 2022
1 parent 7dcc774 commit a7d7693
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 64 deletions.
64 changes: 0 additions & 64 deletions CTng/GZip/GZipComp.go

This file was deleted.

16 changes: 16 additions & 0 deletions CTng/GZip/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# GZIP Implementation

## Contents:
- `Decode.go`: defines the decode and encode functions
- `GZipbyte.go`: contains the compress function
- `GZipDecomp.go`: contains the decompression function

## Decode.go:
- Decode takes in bytes, decompresses them, then returns the decoded string if successful, error if not
- Encode takes in bytes, compresses them, then returns an encoded string if successful, error if not

## GZipbyte.go:
- When given a bytes it will compress them and return compressed bytes

## GZipDecomp.go:
- Decompresses the the compressed bytes to readable data

0 comments on commit a7d7693

Please sign in to comment.