dotty.tools.dotc.core.tasty

TreeBuffer

Related Doc: package tasty

class TreeBuffer extends TastyBuffer

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

Instance Constructors

  1. new TreeBuffer()

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 addrsOfTree(tree: ast.untpd.Tree): List[Addr]

  5. def adjustTreeAddrs(): Unit

  6. def adjusted(x: Addr): Addr

    The address to which x is translated under compression

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def assemble(): Unit

    Hook to be overridden in subclasses.

    Hook to be overridden in subclasses. Perform all actions necessary to assemble the final byte array. After assemble no more output actions to this buffer are permitted.

    Definition Classes
    TastyBuffer
  9. var bytes: Array[Byte]

    The current byte array, will be expanded as needed

    The current byte array, will be expanded as needed

    Definition Classes
    TastyBuffer
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def compactify(): Unit

    Final assembly, involving the following steps:

    Final assembly, involving the following steps:

    • compute deltas
    • adjust deltas until additional savings are < 1% of total
    • adjust offsets according to the adjusted deltas
    • shrink buffer, skipping zeroes.
  12. def currentAddr: Addr

    The address referring to the end of data written so far

    The address referring to the end of data written so far

    Definition Classes
    TastyBuffer
  13. def deltaAt(at: Addr): Int

    The amount by which the bytes at the given address are shifted under compression

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

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

    Definition Classes
    AnyRef → Any
  16. def fillAddr(at: Addr, target: Addr): Unit

    Fill reserved space at address at with address target

    Fill reserved space at address at with address target

    Definition Classes
    TastyBuffer
  17. def fillRef(at: Addr, target: Addr, relative: Boolean): Unit

    Fill previously reserved field with a reference

  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def getAddr(at: Addr): Addr

    The address (represented as a natural number) at address at

    The address (represented as a natural number) at address at

    Definition Classes
    TastyBuffer
  20. def getByte(at: Addr): Int

    The byte at given address

    The byte at given address

    Definition Classes
    TastyBuffer
  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def getLongNat(at: Addr): Long

    The long natural number at address at

    The long natural number at address at

    Definition Classes
    TastyBuffer
  23. def getNat(at: Addr): Int

    The natural number at address at

    The natural number at address at

    Definition Classes
    TastyBuffer
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. var length: Int

    The number of bytes written

    The number of bytes written

    Definition Classes
    TastyBuffer
  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. final def notify(): Unit

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

    Definition Classes
    AnyRef
  30. def putNat(at: Addr, x: Int, width: Int): Unit

    Write natural number x right-adjusted in a field of width bytes starting with address at.

    Write natural number x right-adjusted in a field of width bytes starting with address at.

    Definition Classes
    TastyBuffer
  31. def registerTreeAddr(tree: ast.untpd.Tree): TreeAddrs

  32. def reserveAddr(): Addr

    Reserve AddrWidth bytes to write an address into

    Reserve AddrWidth bytes to write an address into

    Definition Classes
    TastyBuffer
  33. def reserveRef(relative: Boolean): Addr

    Reserve space for a reference, to be adjusted later

  34. final def skipNat(at: Addr): Addr

    The address after the natural number found at address at.

    The address after the natural number found at address at.

    Definition Classes
    TastyBuffer
  35. final def skipZeroes(at: Addr): Addr

    The smallest address equal to or following at which points to a non-zero byte

    The smallest address equal to or following at which points to a non-zero byte

    Definition Classes
    TastyBuffer
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def writeAddr(addr: Addr): Unit

    Write address without leading zeroes

    Write address without leading zeroes

    Definition Classes
    TastyBuffer
  42. def writeByte(b: Int): Unit

    Write a byte of data.

    Write a byte of data.

    Definition Classes
    TastyBuffer
  43. def writeBytes(data: Array[Byte], n: Int): Unit

    Write the first n bytes of data.

    Write the first n bytes of data.

    Definition Classes
    TastyBuffer
  44. def writeInt(x: Int): Unit

    Write a natural number in 2's complement big endian format, base 128.

    Write a natural number in 2's complement big endian format, base 128. All but the last digits have bit 0x80 set.

    Definition Classes
    TastyBuffer
  45. def writeLongInt(x: Long): Unit

    Like writeInt, but for longs

    Like writeInt, but for longs

    Definition Classes
    TastyBuffer
  46. def writeLongNat(x: Long): Unit

    Like writeNat, but for longs.

    Like writeNat, but for longs. Note that the binary representation of LongNat is identical to Nat if the long value is in the range Int.MIN_VALUE to Int.MAX_VALUE.

    Definition Classes
    TastyBuffer
  47. def writeNat(x: Int): Unit

    Write a natural number in big endian format, base 128.

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

    Definition Classes
    TastyBuffer
  48. def writeRef(target: Addr): Unit

    Write reference right adjusted into freshly reserved field.

  49. def writeUncompressedLong(x: Long): Unit

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

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

    Definition Classes
    TastyBuffer

Inherited from TastyBuffer

Inherited from AnyRef

Inherited from Any

Ungrouped