MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / ToBase64

Method ToBase64

roaring64/roaring64.go:26–30  ·  view source on GitHub ↗

ToBase64 serializes a bitmap as Base64

()

Source from the content-addressed store, hash-verified

24
25// ToBase64 serializes a bitmap as Base64
26func (rb *Bitmap) ToBase64() (string, error) {
27 buf := new(bytes.Buffer)
28 _, err := rb.WriteTo(buf)
29 return base64.StdEncoding.EncodeToString(buf.Bytes()), err
30}
31
32// FromBase64 deserializes a bitmap from Base64
33func (rb *Bitmap) FromBase64(str string) (int64, error) {

Callers 1

TestBase64_036Function · 0.45

Calls 1

WriteToMethod · 0.95

Tested by 1

TestBase64_036Function · 0.36