func newWithSpan(data, span []byte) (swarm.Chunk, error) {
	h := hasher(data)
	hash, err := h(span)
	if err != nil {
		return nil, err
	}

	cdata := make([]byte, len(data)+len(span))
	copy(cdata[:swarm.SpanSize], span)
	copy(cdata[swarm.SpanSize:], data)
	return swarm.NewChunk(swarm.NewAddress(hash), cdata), nil
}
// newWithSpan creates a new chunk prepending the given span to the data.
newWithSpan creates a new chunk prepending the given span to the data.
// newWithSpan creates a new chunk prepending the given span to the data .
func newWithSpan(data, span []byte) (swarm.Chunk, error) {
	h := hasher(data)
	hash, err := h(span)
	if err != nil {
		return nil, err
	}
	cdata := make([]byte, len(data)+len(span))
	copy(cdata[:swarm.SpanSize], span)
	copy(cdata[swarm.SpanSize:], data)
	return swarm.NewChunk(swarm.NewAddress(hash), cdata), nil
}
func newWithSpan ( data , span [ ] byte ) ( swarm . Chunk , error ) { h := hasher ( data ) hash , err := h ( span ) if err != nil { return nil , err } cdata := make ( [ ] byte , len ( data ) + len ( span ) ) copy ( cdata [ : swarm . SpanSize ] , span ) copy ( cdata [ swarm . SpanSize : ] , data ) return swarm . NewChunk ( swarm . NewAddress ( hash ) , cdata ) , nil }
newWithSpan creates a new chunk prepending the given span to the data.
newWithSpan creates a new chunk prepending the given span to the data .