Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
54
func
(u *Uint256) Serialize(w io.Writer) error {
55
_, err := w.Write(u[:])
56
return
err
57
}
58
59
func
(u *Uint256) Deserialize(r io.Reader) error {
60
_, err := io.ReadFull(r, u[:])
Callers
2
TestUint256_Serialize
Function · 0.95
TestUint256_Deserialize
Function · 0.95
Calls
1
Write
Method · 0.80
Tested by
2
TestUint256_Serialize
Function · 0.76
TestUint256_Deserialize
Function · 0.76