Bytes

dotty.tools.io.Streamable.Bytes
trait Bytes

Traits which can be viewed as a sequence of bytes. Source types which know their length should override def length: Long for more efficient method implementations.

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Note that this code was not written with resource management in mind. Several methods (such as chars and lines) create InputStreams they don't close

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Chars
class File

Members list

Value members

Abstract methods

Concrete methods

def bytes(): Iterator[Byte]
def length: Long

This method aspires to be the fastest way to read a stream of known length into memory.

This method aspires to be the fastest way to read a stream of known length into memory.

Attributes