// NewNode creates a new IPLD HAMT Node with the given store and given
// options
NewNode creates a new IPLD HAMT Node with the given store and given
options
// NewNode creates a new IPLD HAMT Node with the given store and given // options
func NewNode(cs cbor.IpldStore, options ...Option) *Node {
	nd := &Node{
		Bitfield: big.NewInt(0),
		Pointers: make([]*Pointer, 0),
		store:    cs,
		hash:     defaultHashFunction,
		bitWidth: defaultBitWidth,
	}
	for _, option := range options {
		option(nd)
	}
	return nd
}
func NewNode ( cs cbor . IpldStore , options ... Option ) * Node { nd := & Node { Bitfield : big . NewInt ( 0 ) , Pointers : make ( [ ] * Pointer , 0 ) , store : cs , hash : defaultHashFunction , bitWidth : defaultBitWidth , } for _ , option := range options { option ( nd ) } return nd }
NewNode creates a new IPLD HAMT Node with the given store and given
options
NewNode creates a new IPLD HAMT Node with the given store and given options
// apply functional options to node before using