Commit 826c827e authored by obscuren's avatar obscuren

Added a copy method to state

parent 2b9b0281
......@@ -112,6 +112,10 @@ func (s *State) Cmp(other *State) bool {
return s.trie.Cmp(other.trie)
}
func (s *State) Copy() *State {
return NewState(s.trie.Copy())
}
type ObjType byte
const (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment