dotty.tools.dotc.core.tasty

TastyReader

Related Doc: package tasty

class TastyReader extends AnyRef

A byte array buffer that can be filled with bytes or natural numbers in TASTY format, and that supports reading and patching addresses represented as natural numbers.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TastyReader
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TastyReader(bytes: Array[Byte])

  2. new TastyReader(bytes: Array[Byte], start: Int, end: Int, base: Int = 0)

    bytes

    The array containing data

    start

    The position from which to read

    end

    The position one greater than the last byte to be read

    base

    The index referenced by the logical zero address Addr(0)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def addr(idx: Int): Addr

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. val base: Int

    The index referenced by the logical zero address Addr(0)

  7. val bytes: Array[Byte]

    The array containing data

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def collectWhile[T](cond: ⇒ Boolean)(op: ⇒ T): List[T]

    Perform op while cindition cond holds and collect results in a list.

  10. def currentAddr: Addr

    The address of the next byte to read

  11. def endAddr: Addr

    the address one greater than the last brte to read

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def goto(addr: Addr): Unit

    Set read position to the one pointed to by addr

  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. def ifBefore[T](end: Addr)(op: ⇒ T, default: T): T

    If before given end address, the result of op, otherwise default

  19. def index(addr: Addr): Int

  20. def isAtEnd: Boolean

    Have all bytes been read?

  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. def nextByte: Int

    Returns the next byte of data as a natural number without advancing the read position

  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. def readAddr(): Addr

    Read a natural number and return as an address

  27. def readByte(): Int

    Read a byte of data.

  28. def readBytes(n: Int): Array[Byte]

    Read the next n bytes of data.

  29. def readEnd(): Addr

    Read a length number and return the absolute end address implied by it, given as

    + .

    Read a length number and return the absolute end address implied by it, given as

    + .

  30. def readInt(): Int

    Read an integer number in 2's complement big endian format, base 128.

    Read an integer number in 2's complement big endian format, base 128. All but the last digits have bit 0x80 set.

  31. def readLongInt(): Long

    Read a long integer number in 2's complement big endian format, base 128.

  32. def readLongNat(): Long

    Read a natural number fitting in a Long in big endian format, base 128.

    Read a natural number fitting in a Long in big endian format, base 128. All but the last digits have bit 0x80 set.

  33. def readNameRef(): NameRef

    Read a natural number and return as a NameRef

  34. def readNat(): Int

    Read a natural number fitting in an Int in big endian format, base 128.

    Read a natural number fitting in an Int in big endian format, base 128. All but the last digits have bit 0x80 set.

  35. def readUncompressedLong(): Long

    Read an uncompressed Long stored in 8 bytes in big endian format

  36. def startAddr: Addr

    The address of the first byte to read, respectively byte that was read

  37. def subReader(start: Addr, end: Addr): TastyReader

    A new reader over the same array with the same address base, but with specified start and end positions

  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. def until[T](end: Addr)(op: ⇒ T): List[T]

    Perform op until end address is reached and collect results in a list.

  41. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped