Packages

object Buffer

Source
nodeBufferMod.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Buffer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. val ^: Any
    Annotations
    @JSImport("node:buffer", "Buffer") @native()
  5. def alloc(size: Double, fill: Unit, encoding: BufferEncoding): bufferMod.global.Buffer
    Annotations
    @inline()
  6. def alloc(size: Double, fill: Double, encoding: BufferEncoding): bufferMod.global.Buffer
    Annotations
    @inline()
  7. def alloc(size: Double, fill: Double): bufferMod.global.Buffer
    Annotations
    @inline()
  8. def alloc(size: Double, fill: java.lang.String, encoding: BufferEncoding): bufferMod.global.Buffer
    Annotations
    @inline()
  9. def alloc(size: Double, fill: java.lang.String): bufferMod.global.Buffer
    Annotations
    @inline()
  10. def alloc(size: Double, fill: bufferMod.global.Buffer, encoding: BufferEncoding): bufferMod.global.Buffer
    Annotations
    @inline()
  11. def alloc(size: Double, fill: bufferMod.global.Buffer): bufferMod.global.Buffer
    Annotations
    @inline()
  12. def alloc(size: Double): bufferMod.global.Buffer

    Allocates a new buffer of {size} octets.

    Allocates a new buffer of {size} octets.

    size

    count of octets to allocate.

    Annotations
    @inline()
  13. def allocUnsafe(size: Double): bufferMod.global.Buffer

    Allocates a new buffer of {size} octets, leaving memory not initialized, so the contents of the newly created Buffer are unknown and may contain sensitive data.

    Allocates a new buffer of {size} octets, leaving memory not initialized, so the contents of the newly created Buffer are unknown and may contain sensitive data.

    size

    count of octets to allocate

    Annotations
    @inline()
  14. def allocUnsafeSlow(size: Double): bufferMod.global.Buffer

    Allocates a new non-pooled buffer of {size} octets, leaving memory not initialized, so the contents of the newly created Buffer are unknown and may contain sensitive data.

    Allocates a new non-pooled buffer of {size} octets, leaving memory not initialized, so the contents of the newly created Buffer are unknown and may contain sensitive data.

    size

    count of octets to allocate

    Annotations
    @inline()
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def byteLength(string: ArrayBuffer, encoding: BufferEncoding): Double
    Annotations
    @inline()
  17. def byteLength(string: ArrayBuffer): Double
    Annotations
    @inline()
  18. def byteLength(string: java.lang.String, encoding: BufferEncoding): Double
    Annotations
    @inline()
  19. def byteLength(string: java.lang.String): Double

    Gives the actual byte length of a string.

    Gives the actual byte length of a string. encoding defaults to 'utf8'. This is not the same as String.prototype.length since that returns the number of characters in a string.

    string

    string to test.

    Annotations
    @inline()
  20. def byteLength(string: SharedArrayBuffer, encoding: BufferEncoding): Double
    Annotations
    @inline()
  21. def byteLength(string: SharedArrayBuffer): Double
    Annotations
    @inline()
  22. def byteLength(string: ArrayBufferView, encoding: BufferEncoding): Double
    Annotations
    @inline()
  23. def byteLength(string: ArrayBufferView): Double
    Annotations
    @inline()
  24. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  25. def compare(buf1: Uint8Array, buf2: Uint8Array): Double

    The same as buf1.compare(buf2).

    The same as buf1.compare(buf2).

    Annotations
    @inline()
  26. def concat(list: Array[Uint8Array], totalLength: Double): bufferMod.global.Buffer
    Annotations
    @inline()
  27. def concat(list: Array[Uint8Array]): bufferMod.global.Buffer

    Returns a buffer which is the result of concatenating all the buffers in the list together.

    Returns a buffer which is the result of concatenating all the buffers in the list together.

    If the list has no items, or if the totalLength is 0, then it returns a zero-length buffer. If the list has exactly one item, then the first item of the list is returned. If the list has more than one item, then a new Buffer is created.

    list

    An array of Buffer objects to concatenate

    Annotations
    @inline()
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  30. def from(str: WithImplicitCoercion[java.lang.String], encoding: BufferEncoding): bufferMod.global.Buffer
    Annotations
    @inline()
  31. def from(str: ToPrimitive, encoding: BufferEncoding): bufferMod.global.Buffer
    Annotations
    @inline()
  32. def from(str: ToPrimitive): bufferMod.global.Buffer
    Annotations
    @inline()
  33. def from(data: Uint8Array): bufferMod.global.Buffer

    Creates a new Buffer using the passed {data}

    Creates a new Buffer using the passed {data}

    data

    data to create a new Buffer

    Annotations
    @inline()
  34. def from(data: Array[Double]): bufferMod.global.Buffer
    Annotations
    @inline()
  35. def from(arrayBuffer: WithImplicitCoercion[|[ArrayBuffer, SharedArrayBuffer]], byteOffset: Unit, length: Double): bufferMod.global.Buffer
    Annotations
    @inline()
  36. def from(arrayBuffer: WithImplicitCoercion[|[ArrayBuffer, SharedArrayBuffer]], byteOffset: Double, length: Double): bufferMod.global.Buffer
    Annotations
    @inline()
  37. def from(arrayBuffer: WithImplicitCoercion[|[ArrayBuffer, SharedArrayBuffer]], byteOffset: Double): bufferMod.global.Buffer
    Annotations
    @inline()
  38. def from(arrayBuffer: WithImplicitCoercion[|[|[|[|[Array[Double], ArrayBuffer], SharedArrayBuffer], java.lang.String], Uint8Array]]): bufferMod.global.Buffer

    Creates a new Buffer containing the given JavaScript string {str}.

    Creates a new Buffer containing the given JavaScript string {str}. If provided, the {encoding} parameter identifies the character encoding. If not provided, {encoding} defaults to 'utf8'.

    Annotations
    @inline()
  39. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  40. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  41. def isBuffer(obj: Any): Boolean

    Returns true if {obj} is a Buffer

    Returns true if {obj} is a Buffer

    obj

    object to test.

    Annotations
    @inline()
  42. def isEncoding(encoding: java.lang.String): Boolean

    Returns true if {encoding} is a valid encoding argument.

    Returns true if {encoding} is a valid encoding argument. Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'

    encoding

    string to test.

    Annotations
    @inline()
  43. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  44. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  46. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  47. def of(items: Double*): bufferMod.global.Buffer

    Creates a new Buffer using the passed {data}

    Creates a new Buffer using the passed {data}

    Annotations
    @inline()
  48. def poolSize: Double

    This is the number of bytes used to determine the size of pre-allocated, internal Buffer instances used for pooling.

    This is the number of bytes used to determine the size of pre-allocated, internal Buffer instances used for pooling. This value may be modified.

    Annotations
    @JSImport("node:buffer", "Buffer.poolSize") @native()
  49. def poolSize_=(x: Double): Unit
    Annotations
    @inline()
  50. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  51. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped