MCPcopy Create free account
hub / github.com/DNAProject/DNA / Serialize

Method Serialize

common/uint256.go:54–57  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

52}
53
54func (u *Uint256) Serialize(w io.Writer) error {
55 _, err := w.Write(u[:])
56 return err
57}
58
59func (u *Uint256) Deserialize(r io.Reader) error {
60 _, err := io.ReadFull(r, u[:])

Callers 2

TestUint256_SerializeFunction · 0.95
TestUint256_DeserializeFunction · 0.95

Calls 1

WriteMethod · 0.80

Tested by 2

TestUint256_SerializeFunction · 0.76
TestUint256_DeserializeFunction · 0.76