Creates a new Bytes object from self with len as length

If len is null, strlen will determine the length of the Bytes

Property definitions

core :: bytes $ CString :: to_bytes
	# Creates a new `Bytes` object from `self` with `len` as length
	#
	# If `len` is null, strlen will determine the length of the Bytes
	fun to_bytes(len: nullable Int): Bytes do
		if len == null then len = cstring_length
		return new Bytes(self, len, len)
	end
lib/core/bytes.nit:1023,2--1029,4