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

Method String

libs/bits/bit_array.go:301–303  ·  view source on GitHub ↗

String returns a string representation of BitArray: BA{ }, where is a sequence of 'x' (1) and '_' (0). The includes spaces and newlines to help people. For a simple sequence of 'x' and '_' characters with no spaces or newlines, see the MarshalJSON() method. Examp

()

Source from the content-addressed store, hash-verified

299// see the MarshalJSON() method.
300// Example: "BA{_x_}" or "nil-BitArray" for nil.
301func (bA *BitArray) String() string {
302 return bA.StringIndented("")
303}
304
305// StringIndented returns the same thing as String(), but applies the indent
306// at every 10th bit, and twice at every 50th bit.

Callers 1

TestJSONMarshalUnmarshalFunction · 0.95

Calls 1

StringIndentedMethod · 0.95

Tested by 1

TestJSONMarshalUnmarshalFunction · 0.76