Sha256: 39796f2635bccf44d3a184843826421fd4e6bf3786e9a67deb010cc2e1ded11a
Contents?: true
Size: 425 Bytes
Versions: 6
Compression:
Stored size: 425 Bytes
Contents
'use strict'; var Buffer = require('../../').Buffer; if (Buffer.TYPED_ARRAY_SUPPORT) return; var assert = require('assert'); function testUint8Array(ui) { var length = ui.length; for (var i = 0; i < length; i++) if (ui[i] !== 0) return false; return true; } for (var i = 0; i < 100; i++) { Buffer.alloc(0); var ui = new Uint8Array(65); assert.ok(testUint8Array(ui), 'Uint8Array is not zero-filled'); }
Version data entries
6 entries across 6 versions & 1 rubygems