Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Extremely Popular
Latest
class Pager
import { Pager } from "https://deno.land/x/mongo@v0.33.0/src/utils/saslprep/memory_pager.ts";

A class representation of a pager.

Constructors

new
Pager(pageSize: number, opts?: PagerOptions)

Properties

private
deduplicate: null | Uint8Array
private
path: Uint16Array
private
updates: Page[]
private
zeros: null | Uint8Array
length: number
level: number
maxPages: number
pages: Array
readonly
pageSize: number

Methods

private
_array(i: number, noAllocate: boolean): Page[]
get(i: number, noAllocate?: boolean): Page
lastUpdate(): null | Page
set(i: number, buf: Uint8Array): void
toBuffer(): Uint8Array

Concat all allocated pages into a single buffer.

updated(page: Page): void