Class/Object

scala.meta.internal.tasty

TastyBuffer

Related Docs: object TastyBuffer | package tasty

Permalink

class TastyBuffer 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
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TastyBuffer
  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 TastyBuffer(initialSize: Int)

    Permalink

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 TastyBuffer to any2stringadd[TastyBuffer] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (TastyBuffer, B)

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

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def assemble(): Unit

    Permalink

    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.

  8. var bytes: Array[Byte]

    Permalink

    The current byte array, will be expanded as needed

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def currentAddr: Addr

    Permalink

    The address referring to the end of data written so far

  11. def ensuring(cond: (TastyBuffer) ⇒ Boolean, msg: ⇒ Any): TastyBuffer

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

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

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

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

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

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

    Permalink

    Fill reserved space at address at with address target

  18. def finalize(): Unit

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

    Permalink
    Implicit information
    This member is added by an implicit conversion from TastyBuffer to StringFormat[TastyBuffer] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. def getAddr(at: Addr): Addr

    Permalink

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

  21. def getByte(at: Addr): Int

    Permalink

    The byte at given address

  22. final def getClass(): Class[_]

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

    Permalink

    The long natural number at address at

  24. def getNat(at: Addr): Int

    Permalink

    The natural number at address at

  25. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  27. var length: Int

    Permalink

    The number of bytes written

  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

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

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

    Permalink

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

  32. def reserveAddr(): Addr

    Permalink

    Reserve AddrWidth bytes to write an address into

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

    Permalink

    The address after the natural number found at address at.

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

    Permalink

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

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

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

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

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

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

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

    Permalink

    Write address without leading zeroes

  41. def writeByte(b: Int): Unit

    Permalink

    Write a byte of data.

  42. def writeBytes(data: Array[Byte], n: Int): Unit

    Permalink

    Write the first n bytes of data.

  43. def writeInt(x: Int): Unit

    Permalink

    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.

  44. def writeLongInt(x: Long): Unit

    Permalink

    Like writeInt, but for longs

  45. def writeLongNat(x: Long): Unit

    Permalink

    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.

  46. def writeNat(x: Int): Unit

    Permalink

    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.

  47. def writeUncompressedLong(x: Long): Unit

    Permalink

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

  48. def [B](y: B): (TastyBuffer, B)

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

Inherited from AnyRef

Inherited from Any

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

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

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

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

Ungrouped