MCPcopy Create free account
hub / github.com/copernet/copernicus / Unserialize

Method Unserialize

model/script/script.go:223–225  ·  view source on GitHub ↗
(reader io.Reader, isCoinBase bool)

Source from the content-addressed store, hash-verified

221}
222
223func (s *Script) Unserialize(reader io.Reader, isCoinBase bool) (err error) {
224 return s.Decode(reader, isCoinBase)
225}
226
227func (s *Script) EncodeSize() uint32 {
228 return util.VarIntSerializeSize(uint64(len(s.data))) + uint32(len(s.data))

Callers 1

Calls 1

DecodeMethod · 0.95

Tested by 1