From 0cadc86fc0879e3c105c9b8972c0da11980747e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20W=C3=A4chter?= Date: Mon, 8 Nov 2021 15:45:53 +0100 Subject: [PATCH] 1.1.0 --- docs/assets/search.js | 2 +- docs/classes/default.html | 127 +++++++++++++++++++------------------- package-lock.json | 4 +- package.json | 2 +- 4 files changed, 67 insertions(+), 68 deletions(-) diff --git a/docs/assets/search.js b/docs/assets/search.js index dd7fa49..1d58728 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = {"kinds":{"128":"Class","512":"Constructor","1024":"Property","2048":"Method","262144":"Accessor"},"rows":[{"id":0,"kind":128,"name":"default","url":"classes/default.html","classes":"tsd-kind-class"},{"id":1,"kind":2048,"name":"decimalTo","url":"classes/default.html#decimalTo","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"default"},{"id":2,"kind":2048,"name":"binaryTo","url":"classes/default.html#binaryTo","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"default"},{"id":3,"kind":2048,"name":"hexTo","url":"classes/default.html#hexTo","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"default"},{"id":4,"kind":2048,"name":"octalTo","url":"classes/default.html#octalTo","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"default"},{"id":5,"kind":2048,"name":"ofArray","url":"classes/default.html#ofArray","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"default"},{"id":6,"kind":2048,"name":"ofArrayBuffer","url":"classes/default.html#ofArrayBuffer","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"default"},{"id":7,"kind":512,"name":"constructor","url":"classes/default.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"default"},{"id":8,"kind":1024,"name":"_buffer","url":"classes/default.html#_buffer","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":9,"kind":1024,"name":"_encoding","url":"classes/default.html#_encoding","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":10,"kind":1024,"name":"_fd","url":"classes/default.html#_fd","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":11,"kind":1024,"name":"_index","url":"classes/default.html#_index","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":12,"kind":2048,"name":"fixIndex","url":"classes/default.html#fixIndex","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":13,"kind":2048,"name":"setBase","url":"classes/default.html#setBase","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":14,"kind":2048,"name":"zeroPadding","url":"classes/default.html#zeroPadding","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":15,"kind":262144,"name":"buffer","url":"classes/default.html#buffer","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"default"},{"id":16,"kind":262144,"name":"byteLength","url":"classes/default.html#byteLength","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"default"},{"id":17,"kind":262144,"name":"encoding","url":"classes/default.html#encoding","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"default"},{"id":18,"kind":262144,"name":"fd","url":"classes/default.html#fd","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"default"},{"id":19,"kind":262144,"name":"index","url":"classes/default.html#index","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"default"},{"id":20,"kind":262144,"name":"length","url":"classes/default.html#length","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"default"},{"id":21,"kind":2048,"name":"alloc","url":"classes/default.html#alloc","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":22,"kind":2048,"name":"allocUnsafe","url":"classes/default.html#allocUnsafe","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":23,"kind":2048,"name":"allocKiloBytes","url":"classes/default.html#allocKiloBytes","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":24,"kind":2048,"name":"allocKiloBytesUnsafe","url":"classes/default.html#allocKiloBytesUnsafe","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":25,"kind":2048,"name":"allocMegaBytes","url":"classes/default.html#allocMegaBytes","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":26,"kind":2048,"name":"allocMegaBytesUnsafe","url":"classes/default.html#allocMegaBytesUnsafe","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":27,"kind":2048,"name":"append","url":"classes/default.html#append","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":28,"kind":2048,"name":"appendToFile","url":"classes/default.html#appendToFile","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":29,"kind":2048,"name":"appendToFileSync","url":"classes/default.html#appendToFileSync","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":30,"kind":2048,"name":"available","url":"classes/default.html#available","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":31,"kind":2048,"name":"at","url":"classes/default.html#at","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":32,"kind":2048,"name":"clone","url":"classes/default.html#clone","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":33,"kind":2048,"name":"closeFile","url":"classes/default.html#closeFile","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":34,"kind":2048,"name":"compare","url":"classes/default.html#compare","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":35,"kind":2048,"name":"concat","url":"classes/default.html#concat","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":36,"kind":2048,"name":"copy","url":"classes/default.html#copy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":37,"kind":2048,"name":"copyToIndex","url":"classes/default.html#copyToIndex","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":38,"kind":2048,"name":"extend","url":"classes/default.html#extend","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":39,"kind":2048,"name":"equals","url":"classes/default.html#equals","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":40,"kind":2048,"name":"fit","url":"classes/default.html#fit","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":41,"kind":2048,"name":"fromAscii","url":"classes/default.html#fromAscii","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":42,"kind":2048,"name":"fromFile","url":"classes/default.html#fromFile","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":43,"kind":2048,"name":"fromFileSync","url":"classes/default.html#fromFileSync","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":44,"kind":2048,"name":"fromHex","url":"classes/default.html#fromHex","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":45,"kind":2048,"name":"isBuffer","url":"classes/default.html#isBuffer","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":46,"kind":2048,"name":"isEmpty","url":"classes/default.html#isEmpty","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":47,"kind":2048,"name":"isFull","url":"classes/default.html#isFull","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":48,"kind":2048,"name":"moveIndex","url":"classes/default.html#moveIndex","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":49,"kind":2048,"name":"openFile","url":"classes/default.html#openFile","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":50,"kind":2048,"name":"set","url":"classes/default.html#set","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":51,"kind":2048,"name":"setBinary","url":"classes/default.html#setBinary","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":52,"kind":2048,"name":"setChar","url":"classes/default.html#setChar","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":53,"kind":2048,"name":"setHex","url":"classes/default.html#setHex","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":54,"kind":2048,"name":"setOctal","url":"classes/default.html#setOctal","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":55,"kind":2048,"name":"toArray","url":"classes/default.html#toArray","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":56,"kind":2048,"name":"toAscii","url":"classes/default.html#toAscii","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":57,"kind":2048,"name":"toBinary","url":"classes/default.html#toBinary","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":58,"kind":2048,"name":"toDecimal","url":"classes/default.html#toDecimal","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":59,"kind":2048,"name":"toHex","url":"classes/default.html#toHex","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":60,"kind":2048,"name":"toJSON","url":"classes/default.html#toJSON","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":61,"kind":2048,"name":"toOctal","url":"classes/default.html#toOctal","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":62,"kind":2048,"name":"toString","url":"classes/default.html#toString","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":63,"kind":2048,"name":"toUtf8","url":"classes/default.html#toUtf8","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":64,"kind":2048,"name":"toUint8Array","url":"classes/default.html#toUint8Array","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":65,"kind":2048,"name":"toView","url":"classes/default.html#toView","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":66,"kind":2048,"name":"write","url":"classes/default.html#write","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":67,"kind":2048,"name":"writeToFile","url":"classes/default.html#writeToFile","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":68,"kind":2048,"name":"writeToFileSync","url":"classes/default.html#writeToFileSync","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":69,"kind":2048,"name":"[iterator]","url":"classes/default.html#_iterator_","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,0.071]],["parent/0",[]],["name/1",[1,38.572]],["parent/1",[0,0.007]],["name/2",[2,38.572]],["parent/2",[0,0.007]],["name/3",[3,38.572]],["parent/3",[0,0.007]],["name/4",[4,38.572]],["parent/4",[0,0.007]],["name/5",[5,38.572]],["parent/5",[0,0.007]],["name/6",[6,38.572]],["parent/6",[0,0.007]],["name/7",[7,38.572]],["parent/7",[0,0.007]],["name/8",[8,38.572]],["parent/8",[0,0.007]],["name/9",[9,38.572]],["parent/9",[0,0.007]],["name/10",[10,38.572]],["parent/10",[0,0.007]],["name/11",[11,38.572]],["parent/11",[0,0.007]],["name/12",[12,38.572]],["parent/12",[0,0.007]],["name/13",[13,38.572]],["parent/13",[0,0.007]],["name/14",[14,38.572]],["parent/14",[0,0.007]],["name/15",[15,38.572]],["parent/15",[0,0.007]],["name/16",[16,38.572]],["parent/16",[0,0.007]],["name/17",[17,38.572]],["parent/17",[0,0.007]],["name/18",[18,38.572]],["parent/18",[0,0.007]],["name/19",[19,38.572]],["parent/19",[0,0.007]],["name/20",[20,38.572]],["parent/20",[0,0.007]],["name/21",[21,38.572]],["parent/21",[0,0.007]],["name/22",[22,38.572]],["parent/22",[0,0.007]],["name/23",[23,38.572]],["parent/23",[0,0.007]],["name/24",[24,38.572]],["parent/24",[0,0.007]],["name/25",[25,38.572]],["parent/25",[0,0.007]],["name/26",[26,38.572]],["parent/26",[0,0.007]],["name/27",[27,38.572]],["parent/27",[0,0.007]],["name/28",[28,38.572]],["parent/28",[0,0.007]],["name/29",[29,38.572]],["parent/29",[0,0.007]],["name/30",[30,38.572]],["parent/30",[0,0.007]],["name/31",[31,38.572]],["parent/31",[0,0.007]],["name/32",[32,38.572]],["parent/32",[0,0.007]],["name/33",[33,38.572]],["parent/33",[0,0.007]],["name/34",[34,38.572]],["parent/34",[0,0.007]],["name/35",[35,38.572]],["parent/35",[0,0.007]],["name/36",[36,38.572]],["parent/36",[0,0.007]],["name/37",[37,38.572]],["parent/37",[0,0.007]],["name/38",[38,38.572]],["parent/38",[0,0.007]],["name/39",[39,38.572]],["parent/39",[0,0.007]],["name/40",[40,38.572]],["parent/40",[0,0.007]],["name/41",[41,38.572]],["parent/41",[0,0.007]],["name/42",[42,38.572]],["parent/42",[0,0.007]],["name/43",[43,38.572]],["parent/43",[0,0.007]],["name/44",[44,38.572]],["parent/44",[0,0.007]],["name/45",[45,38.572]],["parent/45",[0,0.007]],["name/46",[46,38.572]],["parent/46",[0,0.007]],["name/47",[47,38.572]],["parent/47",[0,0.007]],["name/48",[48,38.572]],["parent/48",[0,0.007]],["name/49",[49,38.572]],["parent/49",[0,0.007]],["name/50",[50,38.572]],["parent/50",[0,0.007]],["name/51",[51,38.572]],["parent/51",[0,0.007]],["name/52",[52,38.572]],["parent/52",[0,0.007]],["name/53",[53,38.572]],["parent/53",[0,0.007]],["name/54",[54,38.572]],["parent/54",[0,0.007]],["name/55",[55,38.572]],["parent/55",[0,0.007]],["name/56",[56,38.572]],["parent/56",[0,0.007]],["name/57",[57,38.572]],["parent/57",[0,0.007]],["name/58",[58,38.572]],["parent/58",[0,0.007]],["name/59",[59,38.572]],["parent/59",[0,0.007]],["name/60",[60,38.572]],["parent/60",[0,0.007]],["name/61",[61,38.572]],["parent/61",[0,0.007]],["name/62",[62,38.572]],["parent/62",[0,0.007]],["name/63",[63,38.572]],["parent/63",[0,0.007]],["name/64",[64,38.572]],["parent/64",[0,0.007]],["name/65",[65,38.572]],["parent/65",[0,0.007]],["name/66",[66,38.572]],["parent/66",[0,0.007]],["name/67",[67,38.572]],["parent/67",[0,0.007]],["name/68",[68,38.572]],["parent/68",[0,0.007]],["name/69",[69,38.572]],["parent/69",[0,0.007]]],"invertedIndex":[["_buffer",{"_index":8,"name":{"8":{}},"parent":{}}],["_encoding",{"_index":9,"name":{"9":{}},"parent":{}}],["_fd",{"_index":10,"name":{"10":{}},"parent":{}}],["_index",{"_index":11,"name":{"11":{}},"parent":{}}],["alloc",{"_index":21,"name":{"21":{}},"parent":{}}],["allockilobytes",{"_index":23,"name":{"23":{}},"parent":{}}],["allockilobytesunsafe",{"_index":24,"name":{"24":{}},"parent":{}}],["allocmegabytes",{"_index":25,"name":{"25":{}},"parent":{}}],["allocmegabytesunsafe",{"_index":26,"name":{"26":{}},"parent":{}}],["allocunsafe",{"_index":22,"name":{"22":{}},"parent":{}}],["append",{"_index":27,"name":{"27":{}},"parent":{}}],["appendtofile",{"_index":28,"name":{"28":{}},"parent":{}}],["appendtofilesync",{"_index":29,"name":{"29":{}},"parent":{}}],["at",{"_index":31,"name":{"31":{}},"parent":{}}],["available",{"_index":30,"name":{"30":{}},"parent":{}}],["binaryto",{"_index":2,"name":{"2":{}},"parent":{}}],["buffer",{"_index":15,"name":{"15":{}},"parent":{}}],["bytelength",{"_index":16,"name":{"16":{}},"parent":{}}],["clone",{"_index":32,"name":{"32":{}},"parent":{}}],["closefile",{"_index":33,"name":{"33":{}},"parent":{}}],["compare",{"_index":34,"name":{"34":{}},"parent":{}}],["concat",{"_index":35,"name":{"35":{}},"parent":{}}],["constructor",{"_index":7,"name":{"7":{}},"parent":{}}],["copy",{"_index":36,"name":{"36":{}},"parent":{}}],["copytoindex",{"_index":37,"name":{"37":{}},"parent":{}}],["decimalto",{"_index":1,"name":{"1":{}},"parent":{}}],["default",{"_index":0,"name":{"0":{}},"parent":{"1":{},"2":{},"3":{},"4":{},"5":{},"6":{},"7":{},"8":{},"9":{},"10":{},"11":{},"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{},"20":{},"21":{},"22":{},"23":{},"24":{},"25":{},"26":{},"27":{},"28":{},"29":{},"30":{},"31":{},"32":{},"33":{},"34":{},"35":{},"36":{},"37":{},"38":{},"39":{},"40":{},"41":{},"42":{},"43":{},"44":{},"45":{},"46":{},"47":{},"48":{},"49":{},"50":{},"51":{},"52":{},"53":{},"54":{},"55":{},"56":{},"57":{},"58":{},"59":{},"60":{},"61":{},"62":{},"63":{},"64":{},"65":{},"66":{},"67":{},"68":{},"69":{}}}],["encoding",{"_index":17,"name":{"17":{}},"parent":{}}],["equals",{"_index":39,"name":{"39":{}},"parent":{}}],["extend",{"_index":38,"name":{"38":{}},"parent":{}}],["fd",{"_index":18,"name":{"18":{}},"parent":{}}],["fit",{"_index":40,"name":{"40":{}},"parent":{}}],["fixindex",{"_index":12,"name":{"12":{}},"parent":{}}],["fromascii",{"_index":41,"name":{"41":{}},"parent":{}}],["fromfile",{"_index":42,"name":{"42":{}},"parent":{}}],["fromfilesync",{"_index":43,"name":{"43":{}},"parent":{}}],["fromhex",{"_index":44,"name":{"44":{}},"parent":{}}],["hexto",{"_index":3,"name":{"3":{}},"parent":{}}],["index",{"_index":19,"name":{"19":{}},"parent":{}}],["isbuffer",{"_index":45,"name":{"45":{}},"parent":{}}],["isempty",{"_index":46,"name":{"46":{}},"parent":{}}],["isfull",{"_index":47,"name":{"47":{}},"parent":{}}],["iterator",{"_index":69,"name":{"69":{}},"parent":{}}],["length",{"_index":20,"name":{"20":{}},"parent":{}}],["moveindex",{"_index":48,"name":{"48":{}},"parent":{}}],["octalto",{"_index":4,"name":{"4":{}},"parent":{}}],["ofarray",{"_index":5,"name":{"5":{}},"parent":{}}],["ofarraybuffer",{"_index":6,"name":{"6":{}},"parent":{}}],["openfile",{"_index":49,"name":{"49":{}},"parent":{}}],["set",{"_index":50,"name":{"50":{}},"parent":{}}],["setbase",{"_index":13,"name":{"13":{}},"parent":{}}],["setbinary",{"_index":51,"name":{"51":{}},"parent":{}}],["setchar",{"_index":52,"name":{"52":{}},"parent":{}}],["sethex",{"_index":53,"name":{"53":{}},"parent":{}}],["setoctal",{"_index":54,"name":{"54":{}},"parent":{}}],["toarray",{"_index":55,"name":{"55":{}},"parent":{}}],["toascii",{"_index":56,"name":{"56":{}},"parent":{}}],["tobinary",{"_index":57,"name":{"57":{}},"parent":{}}],["todecimal",{"_index":58,"name":{"58":{}},"parent":{}}],["tohex",{"_index":59,"name":{"59":{}},"parent":{}}],["tojson",{"_index":60,"name":{"60":{}},"parent":{}}],["tooctal",{"_index":61,"name":{"61":{}},"parent":{}}],["tostring",{"_index":62,"name":{"62":{}},"parent":{}}],["touint8array",{"_index":64,"name":{"64":{}},"parent":{}}],["toutf8",{"_index":63,"name":{"63":{}},"parent":{}}],["toview",{"_index":65,"name":{"65":{}},"parent":{}}],["write",{"_index":66,"name":{"66":{}},"parent":{}}],["writetofile",{"_index":67,"name":{"67":{}},"parent":{}}],["writetofilesync",{"_index":68,"name":{"68":{}},"parent":{}}],["zeropadding",{"_index":14,"name":{"14":{}},"parent":{}}]],"pipeline":[]}} \ No newline at end of file +window.searchData = {"kinds":{"128":"Class","512":"Constructor","1024":"Property","2048":"Method","262144":"Accessor"},"rows":[{"id":0,"kind":128,"name":"default","url":"classes/default.html","classes":"tsd-kind-class"},{"id":1,"kind":2048,"name":"decimalTo","url":"classes/default.html#decimalTo","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"default"},{"id":2,"kind":2048,"name":"binaryTo","url":"classes/default.html#binaryTo","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"default"},{"id":3,"kind":2048,"name":"hexTo","url":"classes/default.html#hexTo","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"default"},{"id":4,"kind":2048,"name":"octalTo","url":"classes/default.html#octalTo","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"default"},{"id":5,"kind":2048,"name":"ofArray","url":"classes/default.html#ofArray","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"default"},{"id":6,"kind":512,"name":"constructor","url":"classes/default.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"default"},{"id":7,"kind":1024,"name":"_buffer","url":"classes/default.html#_buffer","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":8,"kind":1024,"name":"_encoding","url":"classes/default.html#_encoding","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":9,"kind":1024,"name":"_fd","url":"classes/default.html#_fd","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":10,"kind":1024,"name":"_index","url":"classes/default.html#_index","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":11,"kind":2048,"name":"fixIndex","url":"classes/default.html#fixIndex","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":12,"kind":2048,"name":"setBase","url":"classes/default.html#setBase","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":13,"kind":2048,"name":"zeroPadding","url":"classes/default.html#zeroPadding","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":14,"kind":262144,"name":"buffer","url":"classes/default.html#buffer","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"default"},{"id":15,"kind":262144,"name":"byteLength","url":"classes/default.html#byteLength","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"default"},{"id":16,"kind":262144,"name":"encoding","url":"classes/default.html#encoding","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"default"},{"id":17,"kind":262144,"name":"fd","url":"classes/default.html#fd","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"default"},{"id":18,"kind":262144,"name":"index","url":"classes/default.html#index","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"default"},{"id":19,"kind":262144,"name":"length","url":"classes/default.html#length","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"default"},{"id":20,"kind":2048,"name":"alloc","url":"classes/default.html#alloc","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":21,"kind":2048,"name":"allocUnsafe","url":"classes/default.html#allocUnsafe","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":22,"kind":2048,"name":"allocKiloBytes","url":"classes/default.html#allocKiloBytes","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":23,"kind":2048,"name":"allocKiloBytesUnsafe","url":"classes/default.html#allocKiloBytesUnsafe","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":24,"kind":2048,"name":"allocMegaBytes","url":"classes/default.html#allocMegaBytes","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":25,"kind":2048,"name":"allocMegaBytesUnsafe","url":"classes/default.html#allocMegaBytesUnsafe","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":26,"kind":2048,"name":"append","url":"classes/default.html#append","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":27,"kind":2048,"name":"appendToFile","url":"classes/default.html#appendToFile","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":28,"kind":2048,"name":"appendToFileSync","url":"classes/default.html#appendToFileSync","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":29,"kind":2048,"name":"available","url":"classes/default.html#available","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":30,"kind":2048,"name":"at","url":"classes/default.html#at","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":31,"kind":2048,"name":"clone","url":"classes/default.html#clone","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":32,"kind":2048,"name":"closeFile","url":"classes/default.html#closeFile","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":33,"kind":2048,"name":"compare","url":"classes/default.html#compare","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":34,"kind":2048,"name":"concat","url":"classes/default.html#concat","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":35,"kind":2048,"name":"copy","url":"classes/default.html#copy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":36,"kind":2048,"name":"copyToIndex","url":"classes/default.html#copyToIndex","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":37,"kind":2048,"name":"extend","url":"classes/default.html#extend","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":38,"kind":2048,"name":"equals","url":"classes/default.html#equals","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":39,"kind":2048,"name":"fit","url":"classes/default.html#fit","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":40,"kind":2048,"name":"fromAscii","url":"classes/default.html#fromAscii","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":41,"kind":2048,"name":"fromFile","url":"classes/default.html#fromFile","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":42,"kind":2048,"name":"fromFileSync","url":"classes/default.html#fromFileSync","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":43,"kind":2048,"name":"fromHex","url":"classes/default.html#fromHex","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":44,"kind":2048,"name":"isBuffer","url":"classes/default.html#isBuffer","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":45,"kind":2048,"name":"isEmpty","url":"classes/default.html#isEmpty","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":46,"kind":2048,"name":"isFull","url":"classes/default.html#isFull","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":47,"kind":2048,"name":"moveIndex","url":"classes/default.html#moveIndex","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":48,"kind":2048,"name":"openFile","url":"classes/default.html#openFile","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":49,"kind":2048,"name":"set","url":"classes/default.html#set","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":50,"kind":2048,"name":"setBinary","url":"classes/default.html#setBinary","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":51,"kind":2048,"name":"setChar","url":"classes/default.html#setChar","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":52,"kind":2048,"name":"setHex","url":"classes/default.html#setHex","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":53,"kind":2048,"name":"setOctal","url":"classes/default.html#setOctal","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":54,"kind":2048,"name":"toArray","url":"classes/default.html#toArray","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":55,"kind":2048,"name":"toAscii","url":"classes/default.html#toAscii","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":56,"kind":2048,"name":"toBinary","url":"classes/default.html#toBinary","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":57,"kind":2048,"name":"toDecimal","url":"classes/default.html#toDecimal","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":58,"kind":2048,"name":"toHex","url":"classes/default.html#toHex","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":59,"kind":2048,"name":"toJSON","url":"classes/default.html#toJSON","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":60,"kind":2048,"name":"toOctal","url":"classes/default.html#toOctal","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":61,"kind":2048,"name":"toString","url":"classes/default.html#toString","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":62,"kind":2048,"name":"toUtf8","url":"classes/default.html#toUtf8","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":63,"kind":2048,"name":"toUint8Array","url":"classes/default.html#toUint8Array","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":64,"kind":2048,"name":"toView","url":"classes/default.html#toView","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":65,"kind":2048,"name":"write","url":"classes/default.html#write","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":66,"kind":2048,"name":"writeToFile","url":"classes/default.html#writeToFile","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":67,"kind":2048,"name":"writeToFileSync","url":"classes/default.html#writeToFileSync","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":68,"kind":2048,"name":"[iterator]","url":"classes/default.html#_iterator_","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,0.072]],["parent/0",[]],["name/1",[1,38.43]],["parent/1",[0,0.007]],["name/2",[2,38.43]],["parent/2",[0,0.007]],["name/3",[3,38.43]],["parent/3",[0,0.007]],["name/4",[4,38.43]],["parent/4",[0,0.007]],["name/5",[5,38.43]],["parent/5",[0,0.007]],["name/6",[6,38.43]],["parent/6",[0,0.007]],["name/7",[7,38.43]],["parent/7",[0,0.007]],["name/8",[8,38.43]],["parent/8",[0,0.007]],["name/9",[9,38.43]],["parent/9",[0,0.007]],["name/10",[10,38.43]],["parent/10",[0,0.007]],["name/11",[11,38.43]],["parent/11",[0,0.007]],["name/12",[12,38.43]],["parent/12",[0,0.007]],["name/13",[13,38.43]],["parent/13",[0,0.007]],["name/14",[14,38.43]],["parent/14",[0,0.007]],["name/15",[15,38.43]],["parent/15",[0,0.007]],["name/16",[16,38.43]],["parent/16",[0,0.007]],["name/17",[17,38.43]],["parent/17",[0,0.007]],["name/18",[18,38.43]],["parent/18",[0,0.007]],["name/19",[19,38.43]],["parent/19",[0,0.007]],["name/20",[20,38.43]],["parent/20",[0,0.007]],["name/21",[21,38.43]],["parent/21",[0,0.007]],["name/22",[22,38.43]],["parent/22",[0,0.007]],["name/23",[23,38.43]],["parent/23",[0,0.007]],["name/24",[24,38.43]],["parent/24",[0,0.007]],["name/25",[25,38.43]],["parent/25",[0,0.007]],["name/26",[26,38.43]],["parent/26",[0,0.007]],["name/27",[27,38.43]],["parent/27",[0,0.007]],["name/28",[28,38.43]],["parent/28",[0,0.007]],["name/29",[29,38.43]],["parent/29",[0,0.007]],["name/30",[30,38.43]],["parent/30",[0,0.007]],["name/31",[31,38.43]],["parent/31",[0,0.007]],["name/32",[32,38.43]],["parent/32",[0,0.007]],["name/33",[33,38.43]],["parent/33",[0,0.007]],["name/34",[34,38.43]],["parent/34",[0,0.007]],["name/35",[35,38.43]],["parent/35",[0,0.007]],["name/36",[36,38.43]],["parent/36",[0,0.007]],["name/37",[37,38.43]],["parent/37",[0,0.007]],["name/38",[38,38.43]],["parent/38",[0,0.007]],["name/39",[39,38.43]],["parent/39",[0,0.007]],["name/40",[40,38.43]],["parent/40",[0,0.007]],["name/41",[41,38.43]],["parent/41",[0,0.007]],["name/42",[42,38.43]],["parent/42",[0,0.007]],["name/43",[43,38.43]],["parent/43",[0,0.007]],["name/44",[44,38.43]],["parent/44",[0,0.007]],["name/45",[45,38.43]],["parent/45",[0,0.007]],["name/46",[46,38.43]],["parent/46",[0,0.007]],["name/47",[47,38.43]],["parent/47",[0,0.007]],["name/48",[48,38.43]],["parent/48",[0,0.007]],["name/49",[49,38.43]],["parent/49",[0,0.007]],["name/50",[50,38.43]],["parent/50",[0,0.007]],["name/51",[51,38.43]],["parent/51",[0,0.007]],["name/52",[52,38.43]],["parent/52",[0,0.007]],["name/53",[53,38.43]],["parent/53",[0,0.007]],["name/54",[54,38.43]],["parent/54",[0,0.007]],["name/55",[55,38.43]],["parent/55",[0,0.007]],["name/56",[56,38.43]],["parent/56",[0,0.007]],["name/57",[57,38.43]],["parent/57",[0,0.007]],["name/58",[58,38.43]],["parent/58",[0,0.007]],["name/59",[59,38.43]],["parent/59",[0,0.007]],["name/60",[60,38.43]],["parent/60",[0,0.007]],["name/61",[61,38.43]],["parent/61",[0,0.007]],["name/62",[62,38.43]],["parent/62",[0,0.007]],["name/63",[63,38.43]],["parent/63",[0,0.007]],["name/64",[64,38.43]],["parent/64",[0,0.007]],["name/65",[65,38.43]],["parent/65",[0,0.007]],["name/66",[66,38.43]],["parent/66",[0,0.007]],["name/67",[67,38.43]],["parent/67",[0,0.007]],["name/68",[68,38.43]],["parent/68",[0,0.007]]],"invertedIndex":[["_buffer",{"_index":7,"name":{"7":{}},"parent":{}}],["_encoding",{"_index":8,"name":{"8":{}},"parent":{}}],["_fd",{"_index":9,"name":{"9":{}},"parent":{}}],["_index",{"_index":10,"name":{"10":{}},"parent":{}}],["alloc",{"_index":20,"name":{"20":{}},"parent":{}}],["allockilobytes",{"_index":22,"name":{"22":{}},"parent":{}}],["allockilobytesunsafe",{"_index":23,"name":{"23":{}},"parent":{}}],["allocmegabytes",{"_index":24,"name":{"24":{}},"parent":{}}],["allocmegabytesunsafe",{"_index":25,"name":{"25":{}},"parent":{}}],["allocunsafe",{"_index":21,"name":{"21":{}},"parent":{}}],["append",{"_index":26,"name":{"26":{}},"parent":{}}],["appendtofile",{"_index":27,"name":{"27":{}},"parent":{}}],["appendtofilesync",{"_index":28,"name":{"28":{}},"parent":{}}],["at",{"_index":30,"name":{"30":{}},"parent":{}}],["available",{"_index":29,"name":{"29":{}},"parent":{}}],["binaryto",{"_index":2,"name":{"2":{}},"parent":{}}],["buffer",{"_index":14,"name":{"14":{}},"parent":{}}],["bytelength",{"_index":15,"name":{"15":{}},"parent":{}}],["clone",{"_index":31,"name":{"31":{}},"parent":{}}],["closefile",{"_index":32,"name":{"32":{}},"parent":{}}],["compare",{"_index":33,"name":{"33":{}},"parent":{}}],["concat",{"_index":34,"name":{"34":{}},"parent":{}}],["constructor",{"_index":6,"name":{"6":{}},"parent":{}}],["copy",{"_index":35,"name":{"35":{}},"parent":{}}],["copytoindex",{"_index":36,"name":{"36":{}},"parent":{}}],["decimalto",{"_index":1,"name":{"1":{}},"parent":{}}],["default",{"_index":0,"name":{"0":{}},"parent":{"1":{},"2":{},"3":{},"4":{},"5":{},"6":{},"7":{},"8":{},"9":{},"10":{},"11":{},"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{},"20":{},"21":{},"22":{},"23":{},"24":{},"25":{},"26":{},"27":{},"28":{},"29":{},"30":{},"31":{},"32":{},"33":{},"34":{},"35":{},"36":{},"37":{},"38":{},"39":{},"40":{},"41":{},"42":{},"43":{},"44":{},"45":{},"46":{},"47":{},"48":{},"49":{},"50":{},"51":{},"52":{},"53":{},"54":{},"55":{},"56":{},"57":{},"58":{},"59":{},"60":{},"61":{},"62":{},"63":{},"64":{},"65":{},"66":{},"67":{},"68":{}}}],["encoding",{"_index":16,"name":{"16":{}},"parent":{}}],["equals",{"_index":38,"name":{"38":{}},"parent":{}}],["extend",{"_index":37,"name":{"37":{}},"parent":{}}],["fd",{"_index":17,"name":{"17":{}},"parent":{}}],["fit",{"_index":39,"name":{"39":{}},"parent":{}}],["fixindex",{"_index":11,"name":{"11":{}},"parent":{}}],["fromascii",{"_index":40,"name":{"40":{}},"parent":{}}],["fromfile",{"_index":41,"name":{"41":{}},"parent":{}}],["fromfilesync",{"_index":42,"name":{"42":{}},"parent":{}}],["fromhex",{"_index":43,"name":{"43":{}},"parent":{}}],["hexto",{"_index":3,"name":{"3":{}},"parent":{}}],["index",{"_index":18,"name":{"18":{}},"parent":{}}],["isbuffer",{"_index":44,"name":{"44":{}},"parent":{}}],["isempty",{"_index":45,"name":{"45":{}},"parent":{}}],["isfull",{"_index":46,"name":{"46":{}},"parent":{}}],["iterator",{"_index":68,"name":{"68":{}},"parent":{}}],["length",{"_index":19,"name":{"19":{}},"parent":{}}],["moveindex",{"_index":47,"name":{"47":{}},"parent":{}}],["octalto",{"_index":4,"name":{"4":{}},"parent":{}}],["ofarray",{"_index":5,"name":{"5":{}},"parent":{}}],["openfile",{"_index":48,"name":{"48":{}},"parent":{}}],["set",{"_index":49,"name":{"49":{}},"parent":{}}],["setbase",{"_index":12,"name":{"12":{}},"parent":{}}],["setbinary",{"_index":50,"name":{"50":{}},"parent":{}}],["setchar",{"_index":51,"name":{"51":{}},"parent":{}}],["sethex",{"_index":52,"name":{"52":{}},"parent":{}}],["setoctal",{"_index":53,"name":{"53":{}},"parent":{}}],["toarray",{"_index":54,"name":{"54":{}},"parent":{}}],["toascii",{"_index":55,"name":{"55":{}},"parent":{}}],["tobinary",{"_index":56,"name":{"56":{}},"parent":{}}],["todecimal",{"_index":57,"name":{"57":{}},"parent":{}}],["tohex",{"_index":58,"name":{"58":{}},"parent":{}}],["tojson",{"_index":59,"name":{"59":{}},"parent":{}}],["tooctal",{"_index":60,"name":{"60":{}},"parent":{}}],["tostring",{"_index":61,"name":{"61":{}},"parent":{}}],["touint8array",{"_index":63,"name":{"63":{}},"parent":{}}],["toutf8",{"_index":62,"name":{"62":{}},"parent":{}}],["toview",{"_index":64,"name":{"64":{}},"parent":{}}],["write",{"_index":65,"name":{"65":{}},"parent":{}}],["writetofile",{"_index":66,"name":{"66":{}},"parent":{}}],["writetofilesync",{"_index":67,"name":{"67":{}},"parent":{}}],["zeropadding",{"_index":13,"name":{"13":{}},"parent":{}}]],"pipeline":[]}} \ No newline at end of file diff --git a/docs/classes/default.html b/docs/classes/default.html index 680ff65..ac805db 100644 --- a/docs/classes/default.html +++ b/docs/classes/default.html @@ -1,47 +1,47 @@ -default | bufferlo.js
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class default

Hierarchy

  • default

Index

Constructors

constructor

  • new default(str?: string, encoding?: BufferEncoding): default

Properties

Private _buffer

_buffer: Buffer = null

Private _encoding

_encoding: BufferEncoding

Private _fd

_fd: number = 0

Private _index

_index: number = 0

Accessors

buffer

  • get buffer(): Buffer
  • set buffer(buffer: Buffer): void

byteLength

  • get byteLength(): number

encoding

  • get encoding(): BufferEncoding
  • set encoding(encoding: BufferEncoding): void

fd

  • get fd(): number
  • set fd(fd: number): void

index

  • get index(): number
  • set index(index: number): void

length

  • get length(): number

Methods

[iterator]

  • [iterator](): Generator<number, any, undefined>

alloc

  • alloc(size: number, fill?: string | number | Buffer): void

allocKiloBytes

  • allocKiloBytes(size: number, fill?: string | number | Buffer): void
  • Allocates a new Buffer of size KiloBytes. If fill is undefined, the Buffer will be zero-filled.

    Parameters

    • size: number

      The Buffer size

    • fill: string | number | Buffer = 0

      The Buffer's content

      -

    Returns void

allocKiloBytesUnsafe

  • allocKiloBytesUnsafe(size: number): void

Returns void

allocKiloBytesUnsafe

  • allocKiloBytesUnsafe(size: number): void
  • Allocates a new Buffer of size KiloBytes. If fill is undefined, the Buffer will be zero-filled. The underlying memory is not initialized.

    Parameters

    • size: number

      The Buffer size

      -

    Returns void

allocMegaBytes

  • allocMegaBytes(size: number, fill?: string | number | Buffer): void

Returns void

allocMegaBytes

  • allocMegaBytes(size: number, fill?: string | number | Buffer): void
  • Allocates a new Buffer of size MegaBytes. If fill is undefined, the Buffer will be zero-filled.

    Parameters

    • size: number

      The Buffer size

    • fill: string | number | Buffer = 0

      The Buffer's content

      -

    Returns void

allocMegaBytesUnsafe

  • allocMegaBytesUnsafe(size: number): void

Returns void

allocMegaBytesUnsafe

  • allocMegaBytesUnsafe(size: number): void
  • Allocates a new Buffer of size MegaBytes. If fill is undefined, the Buffer will be zero-filled. The underlying memory is not initialized.

    Parameters

    • size: number

      The Buffer size

      -

    Returns void

allocUnsafe

  • allocUnsafe(size: number): void

Returns void

allocUnsafe

  • allocUnsafe(size: number): void
  • Allocates a new Buffer of size Bytes. If fill is undefined, the Buffer will be zero-filled. The underlying memory is not initialized.

    Parameters

    • size: number

      The Buffer size

      -

    Returns void

append

  • append(str: string): number

Returns void

append

  • append(str: string): number
  • Appends the given string to the Buffer, starting from the current index position. The index is increased by the number of written bytes.

    Parameters

    • str: string

      The string to append

    Returns number

    The number of written Bytes

    -

appendToFile

  • appendToFile(cb?: (buffer: default) => void): void

appendToFile

  • appendToFile(cb?: (buffer: default) => void): void
  • Appends the Buffer content to the current opened file. A fd must be set.

    -

    Parameters

    Returns void

appendToFileSync

  • appendToFileSync(): void

appendToFileSync

  • appendToFileSync(): void
  • Appends the Buffer content to the current opened file synchronously. A fd must be set.

    -

    Returns void

at

  • at(index: number, system?: "binary" | "octal" | "hex" | "decimal"): string | number

at

  • at(index: number, system?: "binary" | "octal" | "hex" | "decimal"): string | number
  • Gets the byte at an given index in a given numeral system. Use an negative index to start from the Buffer end.

    Parameters

    • index: number
      @@ -49,15 +49,15 @@
    • system: "binary" | "octal" | "hex" | "decimal" = 'decimal'

      The numeral system of the return value

    Returns string | number

    The byte at this index

    -

available

  • available(): number

available

  • available(): number
  • Gets the number of unwritten bytes, which depends on the current index position and the size.

    Returns number

    Number of unwritten bytes

    -

clone

clone

  • Clones the current instance. The fd attribute is not copied.

    Returns default

    New Bufferlo instance

    -

closeFile

  • closeFile(): void

closeFile

  • closeFile(): void

compare

compare

  • Compares with a given Bufferlo instance.

    • 0 is returned if target is the same
    • @@ -67,11 +67,11 @@

    Parameters

    • buffer: default

      The Bufferlo instance to compare

    Returns number

    The comparison

    -

concat

concat

  • Concats Buffer with a list of given Bufferlo instances.

    Parameters

    • Rest ...list: default[]

      The Buffer instances to concat

      -

    Returns void

copy

  • copy(buffer: default, targetStart?: number, sourceStart?: number, sourceEnd?: number): number

Returns void

copy

  • copy(buffer: default, targetStart?: number, sourceStart?: number, sourceEnd?: number): number
  • Copies the Buffer content to a given target.

    Parameters

    • buffer: default

      Target Buffer instance

      @@ -82,7 +82,7 @@
    • sourceEnd: number = ...

      The source Buffer ending position

    Returns number

    The number of copied bytes

    -

copyToIndex

  • copyToIndex(buffer: default, sourceStart?: number, sourceEnd?: number): number

copyToIndex

  • copyToIndex(buffer: default, sourceStart?: number, sourceEnd?: number): number
  • Copies the Buffer content to a given target starting at the target's index.

    Parameters

    • buffer: default

      The target Buffer

      @@ -91,68 +91,68 @@
    • sourceEnd: number = ...

      The source Buffer ending position

    Returns number

    The number of copied bytes

    -

equals

equals

  • Compares the bytes with given Bufferlo instance.

    Parameters

    • bufferlo: default

      The Buffer to compare

    Returns boolean

    True if all bytes equal, otherwise false

    -

extend

  • extend(size: number): void

extend

  • extend(size: number): void
  • Extends the Buffer by a given size.

    Parameters

    • size: number

      The size to extend

      -

    Returns void

fit

  • fit(str: string): boolean

Returns void

fit

  • fit(str: string): boolean
  • Checks whether the given string fits into the Buffer. The string fits if enough bytes are unwritten.

    Parameters

    • str: string

      The string to check

    Returns boolean

    True if the string fits, otherwise false

    -

Private fixIndex

  • fixIndex(): void

Private fixIndex

  • fixIndex(): void

fromAscii

  • fromAscii(str: string): void

fromAscii

  • fromAscii(str: string): void
  • Initializes the Buffer from a given Ascii string. Sets the encoding to ASCII.

    Parameters

    • str: string

      The string for the initialization

      -

    Returns void

fromFile

  • fromFile(cb: (buffer: default) => void): void

Returns void

fromFile

  • fromFile(cb: (buffer: default) => void): void
  • Initializes the Buffer from the current opened file (fd).

    Parameters

    • cb: (buffer: default) => void

      The callback when the Buffer is initialized

      -

    Returns void

fromFileSync

  • fromFileSync(): void

Returns void

fromFileSync

  • fromFileSync(): void
  • Initializes the Buffer from the current open file (fd) synchronously.

    -

    Returns void

fromHex

  • fromHex(str: string): void

fromHex

  • fromHex(str: string): void
  • Initializes the Buffer from a given hex string.

    Parameters

    • str: string

      The hex str for the initialization

      -

    Returns void

isBuffer

  • isBuffer(): boolean

Returns void

isBuffer

  • isBuffer(): boolean
  • Checks whether a valid Buffer is set.

    Returns boolean

    True if a valid Buffer is set, otherwise ´false`

    -

isEmpty

  • isEmpty(): boolean

isEmpty

  • isEmpty(): boolean
  • Checks whether the Buffer is empty. The Buffer is empty if the index is at position 0.

    Returns boolean

    True if the Buffer is empty, otherwise false

    -

isFull

  • isFull(): boolean

isFull

  • isFull(): boolean
  • Checks whether the Buffer is full. The Buffer is full if the index equals the Buffer length.

    Returns boolean

    True if the Buffer is full, otherwise false

    -

moveIndex

  • moveIndex(position: "start" | "center" | "end" | "empty"): void

moveIndex

  • moveIndex(position: "start" | "center" | "end" | "empty"): void
  • Moves the index to a given position. Use the index attribute for setting a fixed number.

    Parameters

    • position: "start" | "center" | "end" | "empty"

      The target position

      -

    Returns void

openFile

  • openFile(path: PathLike, mode?: OpenMode): void

Returns void

openFile

  • openFile(path: PathLike, mode?: OpenMode): void
  • Opens a given file and set the fd to it.

    Parameters

    • path: PathLike

      The file to open

    • mode: OpenMode = 'r+'

      The file's OpenMode

      -

    Returns void

set

  • set(index: number, value: number): void

Returns void

set

  • set(index: number, value: number): void
  • Sets the byte at an given index to a given value. The value has to be in range 0-255.

    Parameters

    • index: number

      The byte's index

    • value: number

      The new value

      -

    Returns void

Private setBase

  • setBase(index: number, value: string, base: number): void

Returns void

Private setBase

  • setBase(index: number, value: string, base: number): void
  • Sets the byte at an given index to a given value. The value has to be in range 0-255.

    Parameters

    • index: number
      @@ -161,129 +161,128 @@

      The new value

    • base: number

      The base of the value's numeral system

      -

    Returns void

setBinary

  • setBinary(index: number, value: string): void

Returns void

setBinary

  • setBinary(index: number, value: string): void
  • Sets the byte at an given index to a given binary value. The value has to be in range 0-255.

    Parameters

    • index: number

      The byte's index

    • value: string

      The new value in binary

      -

    Returns void

setChar

  • setChar(index: number, value: string): void

Returns void

setChar

  • setChar(index: number, value: string): void
  • Sets the byte at an given index to the Unicode of a given value. The Unicode is determined using .charCodeAt().

    Parameters

    • index: number

      The byte's index

    • value: string

      The new value

      -

    Returns void

setHex

  • setHex(index: number, value: string): void

Returns void

setHex

  • setHex(index: number, value: string): void
  • Sets the byte at an given index to a given hex value. The value has to be in range 0-255.

    Parameters

    • index: number

      The byte's index

    • value: string

      The new value in hex

      -

    Returns void

setOctal

  • setOctal(index: number, value: string): void

Returns void

setOctal

  • setOctal(index: number, value: string): void
  • Sets the byte at an given index to a given hex value. The value has to be in range 0-255.

    Parameters

    • index: number

      The byte's index

    • value: string

      The new value in hex

      -

    Returns void

toArray

  • toArray(): number[]

Returns void

toArray

  • toArray(): number[]
  • Converts the Buffer to an Array.

    Returns number[]

    The Buffer as Array

    -

toAscii

  • toAscii(): string

toAscii

  • toAscii(): string
  • Decodes the Buffer to an ASCII string.

    Returns string

    ASCII string

    -

toBinary

  • toBinary(): string

toBinary

  • toBinary(): string
  • Decodes the Buffer to a binary string. -Each byte is represented by a 8 bit string.

    +Each byte is represented by a binary 8-tuple.

    Returns string

    Binary string

    -

toDecimal

  • toDecimal(): string

toDecimal

  • toDecimal(): string
  • Decodes the Buffer to a space-separated decimal string. -Each byte is represented by a 3 digit string.

    +Each byte is represented by a decimal 3-tuple.

    Returns string

    Decimal string

    -

toHex

  • toHex(): string

toHex

  • toHex(): string
  • +

    Decodes the Buffer to a hex string. +Each byte is represented by a hex 2-tuple.

    Returns string

    Hex string

    -

toJSON

  • toJSON(): { data: number[]; type: "Buffer" }

toJSON

  • toJSON(): { data: number[]; type: "Buffer" }
  • Returns a JSON representation of the Buffer.

    Returns { data: number[]; type: "Buffer" }

    JSON representation

    -
    • data: number[]
    • type: "Buffer"

toOctal

  • toOctal(): string
  • -

    Decodes the Buffer to an octal string.

    +
    • data: number[]
    • type: "Buffer"

toOctal

  • toOctal(): string
  • +

    Decodes the Buffer to an octal string. +Each byte is represented by an octal 3-tuple.

    Returns string

    Octal string

    -

toString

  • toString(encoding?: BufferEncoding): string

toString

  • toString(encoding?: BufferEncoding): string
  • Decodes the Buffer to a string according to the specified character encoding inencoding.

    Parameters

    • encoding: BufferEncoding = ...

      The character encoding to use.

    Returns string

    Decoded string

    -

toUint8Array

  • toUint8Array(): Uint8Array

toUint8Array

  • toUint8Array(): Uint8Array
  • Converts the Buffer to a Uint8Array.

    Returns Uint8Array

    Uint8Array representation

    -

toUtf8

  • toUtf8(): string

toUtf8

  • toUtf8(): string
  • Decodes the Buffer to an UTF-8 string.

    Returns string

    UTF-8 string

    -

toView

  • toView(offset?: number, length?: number): DataView

toView

  • toView(offset?: number, length?: number): DataView
  • Converts the ´Bufferto aDataView`

    Parameters

    • offset: number = 0

      The Buffer offset

    • length: number = ...

      The number of bytes

    Returns DataView

    DataView representation

    -

write

  • write(str: string, offset?: number): number

write

  • write(str: string, offset?: number): number
  • Writes the given string to the Buffer starting from offset.

    Parameters

    • str: string

      The string to write

    • offset: number = 0

      The offset in bytes

    Returns number

    The number of written bytes

    -

writeToFile

  • writeToFile(cb?: (buffer: default) => void): void

writeToFile

  • writeToFile(cb?: (buffer: default) => void): void
  • Writes the Buffer content to the current opened file. A fd must be set.

    Parameters

    • Optional cb: (buffer: default) => void

      The callback when the file is written

      -

    Returns void

writeToFileSync

  • writeToFileSync(): void

Returns void

writeToFileSync

  • writeToFileSync(): void
  • Writes the Buffer content to the current opened file synchronously. A fd must be set.

    -

    Returns void

Private zeroPadding

  • zeroPadding(str: string, maxLength: number): string

Private zeroPadding

  • zeroPadding(str: string, maxLength: number): string
  • Adds leading 0's to a given str until a maxLength is reached.

    Parameters

    • str: string

      The string to append 0's to

    • maxLength: number

      The strings max length

    Returns string

    The string with leading 0's

    -

Static binaryTo

  • binaryTo(binary: string, target: "octal" | "hex" | "decimal"): string | number

Static binaryTo

  • binaryTo(binary: string, target: "octal" | "hex" | "decimal"): string | number
  • Convert the given binary string to a target numeral system.

    Parameters

    • binary: string

      The binary string

    • target: "octal" | "hex" | "decimal"

      The target numeral system

    Returns string | number

    Converted binary string

    -

Static decimalTo

  • decimalTo(decimal: number, target: "binary" | "octal" | "hex"): string

Static decimalTo

  • decimalTo(decimal: number, target: "binary" | "octal" | "hex"): string
  • Convert the given decimal number to a target numeral system.

    Parameters

    • decimal: number

      The decimal number

    • target: "binary" | "octal" | "hex"

      The target numeral system

    Returns string

    Converted decimal number

    -

Static hexTo

  • hexTo(hex: string, target: "binary" | "octal" | "decimal"): string | number

Static hexTo

  • hexTo(hex: string, target: "binary" | "octal" | "decimal"): string | number
  • Convert the given hex string to a target numeral system.

    Parameters

    • hex: string

      The hex string

    • target: "binary" | "octal" | "decimal"

      The target numeral system

    Returns string | number

    Converted hex string

    -

Static octalTo

  • octalTo(octal: string, target: "binary" | "hex" | "decimal"): string | number

Static octalTo

  • octalTo(octal: string, target: "binary" | "hex" | "decimal"): string | number
  • Convert the given octal string to a target numeral system.

    Parameters

    • octal: string

      The octal string

    • target: "binary" | "hex" | "decimal"

      The target numeral system

    Returns string | number

    Converted octal string

    -

Static ofArray

  • ofArray(data: Uint8Array | readonly number[]): default

Static ofArray

  • ofArray(data: Uint8Array | readonly number[]): default
  • Creates a new Bufferlo instance by a given Array

    Parameters

    • data: Uint8Array | readonly number[]

      The Array

    Returns default

    An new Bufferlo instance

    -

Static ofArrayBuffer

  • ofArrayBuffer(arrayBuffer: WithImplicitCoercion<ArrayBuffer | SharedArrayBuffer>): default
  • -

    Creates a new Bufferlo instance by a given ArrayBuffer

    -

    Parameters

    • arrayBuffer: WithImplicitCoercion<ArrayBuffer | SharedArrayBuffer>

    Returns default

    An new Bufferlo instance

    -

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 62ca5ef..ff870b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bufferlo.js", - "version": "1.0.0", + "version": "1.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bufferlo.js", - "version": "1.0.0", + "version": "1.1.0", "license": "MIT", "devDependencies": { "@types/mocha": "^9.0.0", diff --git a/package.json b/package.json index c654349..19a66a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bufferlo.js", - "version": "1.0.0", + "version": "1.1.0", "description": "A TypeScript library built for the Node Buffer class.", "author": { "name": "Lars Wächter",