MCPcopy Create free account
hub / github.com/blues/note / jsonDecompress

Function jsonDecompress

lib/wire.go:232–234  ·  view source on GitHub ↗

Decompress a byte array known to contain JSON. Note that we support 08 as of 11/01/2020.

(compressed []byte)

Source from the content-addressed store, hash-verified

230
231// Decompress a byte array known to contain JSON. Note that we support 08 as of 11/01/2020.
232func jsonDecompress(compressed []byte) (normal []byte, err error) {
233 return jsonDecompressTrace(compressed, false)
234}
235
236// jsonDecompressTrace decompresses with optional verbose debugging output
237func jsonDecompressTrace(compressed []byte, trace bool) (normal []byte, err error) {

Callers 3

GetNotefileMethod · 0.85
GetNotefilesMethod · 0.85
GetBodyMethod · 0.85

Calls 1

jsonDecompressTraceFunction · 0.85

Tested by

no test coverage detected