Class

scala.meta.internal.tasty

TastyReader

Related Doc: package tasty

Permalink

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
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

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

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

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from TastyReader to any2stringadd[TastyReader] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (TastyReader, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from TastyReader to ArrowAssoc[TastyReader] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

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

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. val base: Int

    Permalink

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

  9. val bytes: Array[Byte]

    Permalink

    The array containing data

  10. def clone(): AnyRef

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

    Permalink

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

  12. def currentAddr: Addr

    Permalink

    The address of the next byte to read

  13. def endAddr: Addr

    Permalink

    the address one greater than the last brte to read

  14. def ensuring(cond: (TastyReader) ⇒ Boolean, msg: ⇒ Any): TastyReader

    Permalink
    Implicit information
    This member is added by an implicit conversion from TastyReader to Ensuring[TastyReader] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (TastyReader) ⇒ Boolean): TastyReader

    Permalink
    Implicit information
    This member is added by an implicit conversion from TastyReader to Ensuring[TastyReader] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): TastyReader

    Permalink
    Implicit information
    This member is added by an implicit conversion from TastyReader to Ensuring[TastyReader] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): TastyReader

    Permalink
    Implicit information
    This member is added by an implicit conversion from TastyReader to Ensuring[TastyReader] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from TastyReader to StringFormat[TastyReader] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  22. final def getClass(): Class[_]

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

    Permalink

    Set read position to the one pointed to by addr

  24. def hashCode(): Int

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

    Permalink

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

  26. def index(addr: Addr): Int

    Permalink
  27. def isAtEnd: Boolean

    Permalink

    Have all bytes been read?

  28. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  30. def nextByte: Int

    Permalink

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

  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. def readAddr(): Addr

    Permalink

    Read a natural number and return as an address

  34. def readByte(): Int

    Permalink

    Read a byte of data.

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

    Permalink

    Read the next n bytes of data.

  36. def readEnd(): Addr

    Permalink

    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

    + .

  37. def readInt(): Int

    Permalink

    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.

  38. def readLongInt(): Long

    Permalink

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

  39. def readLongNat(): Long

    Permalink

    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.

  40. def readNameRef(): NameRef

    Permalink

    Read a natural number and return as a NameRef

  41. def readNat(): Int

    Permalink

    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.

  42. def readUncompressedLong(): Long

    Permalink

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

  43. def startAddr: Addr

    Permalink

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

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

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  46. def toString(): String

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

    Permalink

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

  48. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def [B](y: B): (TastyReader, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from TastyReader to ArrowAssoc[TastyReader] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from TastyReader to any2stringadd[TastyReader]

Inherited by implicit conversion StringFormat from TastyReader to StringFormat[TastyReader]

Inherited by implicit conversion Ensuring from TastyReader to Ensuring[TastyReader]

Inherited by implicit conversion ArrowAssoc from TastyReader to ArrowAssoc[TastyReader]

Ungrouped