api documentation for buffer (v5.0.6)

Node.js Buffer API, for the browser

table of contents

  1. module buffer
    1. function buffer.Buffer (arg, encodingOrOffset, length)
    2. function buffer.SlowBuffer (length)
    3. number buffer.INSPECT_MAX_BYTES
    4. number buffer.kMaxLength
    5. object buffer.Buffer.prototype
  2. module buffer.Buffer
    1. boolean buffer.Buffer.TYPED_ARRAY_SUPPORT
    2. function buffer.Buffer (arg, encodingOrOffset, length)
    3. function buffer.Buffer.alloc (size, fill, encoding)
    4. function buffer.Buffer.allocUnsafe (size)
    5. function buffer.Buffer.allocUnsafeSlow (size)
    6. function buffer.Buffer.byteLength (string, encoding)
    7. function buffer.Buffer.compare (a, b)
    8. function buffer.Buffer.concat (list, length)
    9. function buffer.Buffer.from (value, encodingOrOffset, length)
    10. function buffer.Buffer.isBuffer (b)
    11. function buffer.Buffer.isEncoding (encoding)
    12. number buffer.Buffer.poolSize
  3. module buffer.Buffer.prototype
    1. boolean buffer.Buffer.prototype._isBuffer
    2. function buffer.Buffer.prototype.compare (target, start, end, thisStart, thisEnd)
    3. function buffer.Buffer.prototype.copy (target, targetStart, start, end)
    4. function buffer.Buffer.prototype.equals (b)
    5. function buffer.Buffer.prototype.fill (val, start, end, encoding)
    6. function buffer.Buffer.prototype.includes (val, byteOffset, encoding)
    7. function buffer.Buffer.prototype.indexOf (val, byteOffset, encoding)
    8. function buffer.Buffer.prototype.inspect ()
    9. function buffer.Buffer.prototype.lastIndexOf (val, byteOffset, encoding)
    10. function buffer.Buffer.prototype.readDoubleBE (offset, noAssert)
    11. function buffer.Buffer.prototype.readDoubleLE (offset, noAssert)
    12. function buffer.Buffer.prototype.readFloatBE (offset, noAssert)
    13. function buffer.Buffer.prototype.readFloatLE (offset, noAssert)
    14. function buffer.Buffer.prototype.readInt16BE (offset, noAssert)
    15. function buffer.Buffer.prototype.readInt16LE (offset, noAssert)
    16. function buffer.Buffer.prototype.readInt32BE (offset, noAssert)
    17. function buffer.Buffer.prototype.readInt32LE (offset, noAssert)
    18. function buffer.Buffer.prototype.readInt8 (offset, noAssert)
    19. function buffer.Buffer.prototype.readIntBE (offset, byteLength, noAssert)
    20. function buffer.Buffer.prototype.readIntLE (offset, byteLength, noAssert)
    21. function buffer.Buffer.prototype.readUInt16BE (offset, noAssert)
    22. function buffer.Buffer.prototype.readUInt16LE (offset, noAssert)
    23. function buffer.Buffer.prototype.readUInt32BE (offset, noAssert)
    24. function buffer.Buffer.prototype.readUInt32LE (offset, noAssert)
    25. function buffer.Buffer.prototype.readUInt8 (offset, noAssert)
    26. function buffer.Buffer.prototype.readUIntBE (offset, byteLength, noAssert)
    27. function buffer.Buffer.prototype.readUIntLE (offset, byteLength, noAssert)
    28. function buffer.Buffer.prototype.slice (start, end)
    29. function buffer.Buffer.prototype.swap16 ()
    30. function buffer.Buffer.prototype.swap32 ()
    31. function buffer.Buffer.prototype.swap64 ()
    32. function buffer.Buffer.prototype.toJSON ()
    33. function buffer.Buffer.prototype.toString ()
    34. function buffer.Buffer.prototype.write (string, offset, length, encoding)
    35. function buffer.Buffer.prototype.writeDoubleBE (value, offset, noAssert)
    36. function buffer.Buffer.prototype.writeDoubleLE (value, offset, noAssert)
    37. function buffer.Buffer.prototype.writeFloatBE (value, offset, noAssert)
    38. function buffer.Buffer.prototype.writeFloatLE (value, offset, noAssert)
    39. function buffer.Buffer.prototype.writeInt16BE (value, offset, noAssert)
    40. function buffer.Buffer.prototype.writeInt16LE (value, offset, noAssert)
    41. function buffer.Buffer.prototype.writeInt32BE (value, offset, noAssert)
    42. function buffer.Buffer.prototype.writeInt32LE (value, offset, noAssert)
    43. function buffer.Buffer.prototype.writeInt8 (value, offset, noAssert)
    44. function buffer.Buffer.prototype.writeIntBE (value, offset, byteLength, noAssert)
    45. function buffer.Buffer.prototype.writeIntLE (value, offset, byteLength, noAssert)
    46. function buffer.Buffer.prototype.writeUInt16BE (value, offset, noAssert)
    47. function buffer.Buffer.prototype.writeUInt16LE (value, offset, noAssert)
    48. function buffer.Buffer.prototype.writeUInt32BE (value, offset, noAssert)
    49. function buffer.Buffer.prototype.writeUInt32LE (value, offset, noAssert)
    50. function buffer.Buffer.prototype.writeUInt8 (value, offset, noAssert)
    51. function buffer.Buffer.prototype.writeUIntBE (value, offset, byteLength, noAssert)
    52. function buffer.Buffer.prototype.writeUIntLE (value, offset, byteLength, noAssert)

module buffer

function buffer.Buffer (arg, encodingOrOffset, length)

function buffer.SlowBuffer (length)

module buffer.Buffer

function buffer.Buffer (arg, encodingOrOffset, length)

function buffer.Buffer.alloc (size, fill, encoding)

function buffer.Buffer.allocUnsafe (size)

function buffer.Buffer.allocUnsafeSlow (size)

function buffer.Buffer.byteLength (string, encoding)

function buffer.Buffer.compare (a, b)

function buffer.Buffer.concat (list, length)

function buffer.Buffer.from (value, encodingOrOffset, length)

function buffer.Buffer.isBuffer (b)

function buffer.Buffer.isEncoding (encoding)

module buffer.Buffer.prototype

function buffer.Buffer.prototype.compare (target, start, end, thisStart, thisEnd)

function buffer.Buffer.prototype.copy (target, targetStart, start, end)

function buffer.Buffer.prototype.equals (b)

function buffer.Buffer.prototype.fill (val, start, end, encoding)

function buffer.Buffer.prototype.includes (val, byteOffset, encoding)

function buffer.Buffer.prototype.indexOf (val, byteOffset, encoding)

function buffer.Buffer.prototype.inspect ()

function buffer.Buffer.prototype.lastIndexOf (val, byteOffset, encoding)

function buffer.Buffer.prototype.readDoubleBE (offset, noAssert)

function buffer.Buffer.prototype.readDoubleLE (offset, noAssert)

function buffer.Buffer.prototype.readFloatBE (offset, noAssert)

function buffer.Buffer.prototype.readFloatLE (offset, noAssert)

function buffer.Buffer.prototype.readInt16BE (offset, noAssert)

function buffer.Buffer.prototype.readInt16LE (offset, noAssert)

function buffer.Buffer.prototype.readInt32BE (offset, noAssert)

function buffer.Buffer.prototype.readInt32LE (offset, noAssert)

function buffer.Buffer.prototype.readInt8 (offset, noAssert)

function buffer.Buffer.prototype.readIntBE (offset, byteLength, noAssert)

function buffer.Buffer.prototype.readIntLE (offset, byteLength, noAssert)

function buffer.Buffer.prototype.readUInt16BE (offset, noAssert)

function buffer.Buffer.prototype.readUInt16LE (offset, noAssert)

function buffer.Buffer.prototype.readUInt32BE (offset, noAssert)

function buffer.Buffer.prototype.readUInt32LE (offset, noAssert)

function buffer.Buffer.prototype.readUInt8 (offset, noAssert)

function buffer.Buffer.prototype.readUIntBE (offset, byteLength, noAssert)

function buffer.Buffer.prototype.readUIntLE (offset, byteLength, noAssert)

function buffer.Buffer.prototype.slice (start, end)

function buffer.Buffer.prototype.swap16 ()

function buffer.Buffer.prototype.swap32 ()

function buffer.Buffer.prototype.swap64 ()

function buffer.Buffer.prototype.toJSON ()

function buffer.Buffer.prototype.toString ()

function buffer.Buffer.prototype.write (string, offset, length, encoding)

function buffer.Buffer.prototype.writeDoubleBE (value, offset, noAssert)

function buffer.Buffer.prototype.writeDoubleLE (value, offset, noAssert)

function buffer.Buffer.prototype.writeFloatBE (value, offset, noAssert)

function buffer.Buffer.prototype.writeFloatLE (value, offset, noAssert)

function buffer.Buffer.prototype.writeInt16BE (value, offset, noAssert)

function buffer.Buffer.prototype.writeInt16LE (value, offset, noAssert)

function buffer.Buffer.prototype.writeInt32BE (value, offset, noAssert)

function buffer.Buffer.prototype.writeInt32LE (value, offset, noAssert)

function buffer.Buffer.prototype.writeInt8 (value, offset, noAssert)

function buffer.Buffer.prototype.writeIntBE (value, offset, byteLength, noAssert)

function buffer.Buffer.prototype.writeIntLE (value, offset, byteLength, noAssert)

function buffer.Buffer.prototype.writeUInt16BE (value, offset, noAssert)

function buffer.Buffer.prototype.writeUInt16LE (value, offset, noAssert)

function buffer.Buffer.prototype.writeUInt32BE (value, offset, noAssert)

function buffer.Buffer.prototype.writeUInt32LE (value, offset, noAssert)

function buffer.Buffer.prototype.writeUInt8 (value, offset, noAssert)

function buffer.Buffer.prototype.writeUIntBE (value, offset, byteLength, noAssert)

function buffer.Buffer.prototype.writeUIntLE (value, offset, byteLength, noAssert)

[ this document was created with utility2 ]