Skip to content

Commit

Permalink
add missing src/buffer-content-entry.mjs from template
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Jun 20, 2024
1 parent d135b5d commit 7b9053e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/buffer-content-entry.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { BufferContentEntryMixin } from "./buffer-content-entry-mixin.mjs";
import { ContentEntry } from "./content-entry.mjs";

/**
* ConentEntry with a Uint8Array as content store.
* @param {string} name
* @param {Uint8Array} buffer
*/
export class BufferContentEntry extends BufferContentEntryMixin(ContentEntry) {
constructor(name, buffer) {
// @ts-ignore
super(name);
Object.defineProperties(this, { buffer: { value: buffer } });
}
}

0 comments on commit 7b9053e

Please sign in to comment.