MCPcopy Create free account
hub / github.com/brimdata/super / Set

Method Set

cli/auto/bytes.go:21–30  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

19}
20
21func (b *Bytes) Set(s string) error {
22 b.defStr = ""
23 b.Bytes = 0
24 bytes, err := units.ParseStrictBytes(s)
25 if err != nil {
26 return err
27 }
28 b.Bytes = units.Base2Bytes(bytes)
29 return nil
30}
31
32func NewBytes(def uint64) Bytes {
33 bytes := units.Base2Bytes(def)

Callers 15

WalkTFunction · 0.45
walkTFunction · 0.45
newRequestFunction · 0.45
SetAuthTokenMethod · 0.45
SetUserAgentMethod · 0.45
DoMethod · 0.45
LoadMethod · 0.45
encodeCommitMessageFunction · 0.45
SubscribeEventsMethod · 0.45
postMethod · 0.45
loadAnyWithLockMethod · 0.45
compareIPsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected