MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / GZipUncompress

Function GZipUncompress

utils/binary/utils.go:59–66  ·  view source on GitHub ↗
(src []byte)

Source from the content-addressed store, hash-verified

57}
58
59func GZipUncompress(src []byte) []byte {
60 b := bytes.NewReader(src)
61 var out bytes.Buffer
62 r, _ := gzip.NewReader(b)
63 defer r.Close()
64 _, _ = out.ReadFrom(r)
65 return out.Bytes()
66}
67
68func UInt32ToIPV4Address(i uint32) string {
69 ip := net.IP{0, 0, 0, 0}

Callers 1

FetchForwardMsgMethod · 0.92

Calls 3

ReadFromMethod · 0.80
BytesMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected