MCPcopy
hub / github.com/wal-g/wal-g / ToBytes

Function ToBytes

utility/utility.go:104–108  ·  view source on GitHub ↗
(x interface{})

Source from the content-addressed store, hash-verified

102}
103
104func ToBytes(x interface{}) []byte {
105 var buf bytes.Buffer
106 _ = binary.Write(&buf, binary.LittleEndian, x)
107 return buf.Bytes()
108}
109
110func AllZero(s []byte) bool {
111 for _, v := range s {

Callers 7

SaveMethod · 0.92
initializeMethod · 0.92
WriteDiffMapToHeaderMethod · 0.92
initializeMethod · 0.92
WriteDiffMapToHeaderMethod · 0.92
NewIncrementalPageReaderFunction · 0.92
GetXLogRecordDataFunction · 0.92

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected