Skip to content

Commit

Permalink
refactor: make findRow private
Browse files Browse the repository at this point in the history
  • Loading branch information
andipaetzold committed Dec 2, 2023
1 parent 7aa0591 commit 2b721c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ export class Database {
const row = pageRow & 0xff;

const pageBuffer = await this.getPage(page);
return this.findRow(pageBuffer, row);
return this.#findRow(pageBuffer, row);
}

/**
* @param pageBuffer Buffer of a data page
*
* @see https://github.com/brianb/mdbtools/blob/d6f5745d949f37db969d5f424e69b54f0da60b9b/src/libmdb/data.c#L126-L138
*/
findRow(pageBuffer: Buffer, row: number): Buffer {
#findRow(pageBuffer: Buffer, row: number): Buffer {
const rco = this.#format.dataPage.recordCountOffset;

if (row > 1000) {
Expand Down

0 comments on commit 2b721c2

Please sign in to comment.