Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mysql2/index.d.ts>Buffer#entries

MySQL client for Deno with focus on performance. Supports prepared statements, non-utf8 encodings, binary log protocol, compression much more
Latest
method Buffer.prototype.entries
Re-export
import { Buffer } from "https://deno.land/x/mysql2@v1.0.6/index.d.ts";

Creates and returns an iterator of [index, byte] pairs from the contents of buf.

import { Buffer } from 'buffer';

// Log the entire contents of a `Buffer`.

const buf = Buffer.from('buffer');

for (const pair of buf.entries()) {
  console.log(pair);
}
// Prints:
//   [0, 98]
//   [1, 117]
//   [2, 102]
//   [3, 102]
//   [4, 101]
//   [5, 114]

Returns

IterableIterator<[number, number]>