MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / String

Method String

pkg/boolset/boolset.go:37–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (b *BooleanSet) String() (data string, err error) {
38 raw, err := b.MarshalBinary()
39 if err != nil {
40 return "", err
41 }
42
43 return base64.StdEncoding.EncodeToString(raw), nil
44}
45
46func (b *BooleanSet) Enabled(flag int) bool {
47 if flag >= len(*b)*8 {

Callers

nothing calls this directly

Calls 1

MarshalBinaryMethod · 0.95

Tested by

no test coverage detected