| const tape = require('tape') | |
| const { BufferList, BufferListStream } = require('../') | |
| const { Buffer } = require('buffer') | |
| tape('convert from BufferList to BufferListStream', (t) => { | |
| const data = Buffer.from(`TEST-${Date.now()}`) | |
| const bl = new BufferList(data) | |
| const bls = new BufferListStream(bl) | |
| t.ok(bl.slice().equals(bls.slice())) | |
| t.end() | |
| }) | |
| tape('convert from BufferListStream to BufferList', (t) => { | |
| const data = Buffer.from(`TEST-${Date.now()}`) | |
| const bls = new BufferListStream(data) | |
| const bl = new BufferList(bls) | |
| t.ok(bl.slice().equals(bls.slice())) | |
| t.end() | |
| }) | |
Xet Storage Details
- Size:
- 609 Bytes
- Xet hash:
- 1562c0806f612ebaccd5bde2acee8120afc079242ee232d02cdbe14a895634ae
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.