Gets a view on the bytes of the Text object

assert "hello".bytes.to_a == [104, 101, 108, 108, 111]

Property definitions

core $ Text :: bytes
	# Gets a view on the bytes of the Text object
	#
	# ~~~
	# assert "hello".bytes.to_a == [104, 101, 108, 108, 111]
	# ~~~
	fun bytes: SequenceRead[Int] is abstract
lib/core/text/abstract_text.nit:42,2--47,41

core $ Concat :: bytes
	redef fun bytes do return new RopeBytes(self)
lib/core/text/ropes.nit:75,2--46

core $ FlatString :: bytes
	redef fun bytes do return new FlatStringByteView(self)
lib/core/text/flat.nit:418,2--55

core $ FlatBuffer :: bytes
	redef fun bytes do return new FlatBufferByteView(self)
lib/core/text/flat.nit:872,2--55