code: func NewBytes(value []byte, opts BytesOptions) Bytes {
  	if opts == nil {
  		opts = defaultBytesOptions
  	}
  	b := &bytesRef{
  		opts:  opts,
  		value: value,
  	}
  	b.SetFinalizer(b)
  	// NB(r): Tracking objects causes interface allocation
  	// so avoid if we are not performing any leak detection.
  	if leakDetectionEnabled() {
  		b.TrackObject(b.value)
  	}
  	return b
  }
docs: // NewBytes returns a new checked byte slice.