// NewByteSlice constructs and returns a new ByteSlice based on the given []byte
// b. If b is of zero length the new ByteSlice will be null. Otherwise a new,
// valid ByteSlice will be initialized with a copy of b.
NewByteSlice constructs and returns a new ByteSlice based on the given []byte
b. If b is of zero length the new ByteSlice will be null. Otherwise a new,
valid ByteSlice will be initialized with a copy of b.
// NewByteSlice constructs and returns a new ByteSlice based on the given [] byte // b . If b is of zero length the new ByteSlice will be null . Otherwise a new // valid ByteSlice will be initialized with a copy of b .
func NewByteSlice(b []byte) ByteSlice {
	if b == nil {
		return NullByteSlice()
	}
	return ByteSlice{
		ByteSlice: append([]byte{}, b...),
		Valid:     true,
	}
}
func NewByteSlice ( b [ ] byte ) ByteSlice { if b == nil { return NullByteSlice ( ) } return ByteSlice { ByteSlice : append ( [ ] byte { } , b ... ) , Valid : true , } }
NewByteSlice constructs and returns a new ByteSlice based on the given []byte
b.
NewByteSlice constructs and returns a new ByteSlice based on the given [] byte b .