Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support API for official snappy framing #2

Open
GoogleCodeExporter opened this issue Mar 20, 2015 · 4 comments
Open

support API for official snappy framing #2

GoogleCodeExporter opened this issue Mar 20, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

I would like to see some functions to facilitate building a framed snappy 
stream. Some functions that would be helpful:

EncodeFrame(dst, src []byte)
StartFrames(dst)
FinishFrames(dst)

Please provide any additional information below.

The official snappy repository has a document describing the framing format for 
snappy (http://code.google.com/p/snappy/source/browse/trunk/framing_format.txt) 

Original issue reported on code.google.com by jehiah on 19 Jul 2012 at 3:58

@GoogleCodeExporter
Copy link
Author

I put a library for decoding the snappy stream format here:

go get github.com/glycerine/go-unsnap-stream

Original comment by [email protected] on 11 Jan 2014 at 10:36

@GoogleCodeExporter
Copy link
Author

I've taken an initial pass at implementing Reader/Writers for the framing 
format at https://github.com/twotwotwo/sz/ but caveat emptor to the max: there 
is no test suite, this is immature code, etc. More detail is at 
https://code.google.com/p/snappy-go/issues/detail?id=4#c1

Original comment by [email protected] on 7 Aug 2014 at 8:16

@GoogleCodeExporter
Copy link
Author

I should have updated this a while ago. At Bitly we have been using 
https://github.com/mreiferson/go-snappystream happily for a while.

Original comment by jehiah on 7 Aug 2014 at 8:53

@GoogleCodeExporter
Copy link
Author

With two days of hard work, I've implemented the framing for snappy: 
github.com/tgulacsi/sz

Then I've found this issue :)

At least the command-line client is usable (now using 
github.com/mreiferson/go-snappystream):
    go get github.com/tgulacsi/sz

Original comment by [email protected] on 15 Oct 2014 at 6:46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant