1- /* global exports */
21/* global Buffer */
3- /* global require */
42"use strict" ;
53
6- exports . showImpl = require ( ' util' ) . inspect ;
4+ exports . showImpl = require ( " util" ) . inspect ;
75
8- exports . eqImpl = function ( a ) {
9- return function ( b ) {
6+ exports . eqImpl = function ( a ) {
7+ return function ( b ) {
108 return a . equals ( b ) ;
11- }
9+ } ;
1210} ;
1311
14- exports . compareImpl = function ( a ) {
12+ exports . compareImpl = function ( a ) {
1513 return function ( b ) {
1614 return a . compare ( b ) ;
1715 } ;
18- }
16+ } ;
1917
2018exports . create = function ( size ) {
2119 return Buffer . alloc ( size ) ;
@@ -30,15 +28,15 @@ exports.size = function (buff) {
3028} ;
3129
3230exports . toArray = function ( buff ) {
33- var json = buff . toJSON ( )
31+ var json = buff . toJSON ( ) ;
3432 return json . data || json ;
3533} ;
3634
37- exports . toArrayBuffer = function ( buff ) {
35+ exports . toArrayBuffer = function ( buff ) {
3836 return buff . buffer . slice ( buff . byteOffset , buff . byteOffset + buff . byteLength ) ;
3937} ;
4038
41- exports . fromArrayBuffer = function ( ab ) {
39+ exports . fromArrayBuffer = function ( ab ) {
4240 return Buffer . from ( ab ) ;
4341} ;
4442
@@ -51,7 +49,7 @@ exports.fromStringImpl = function (str) {
5149exports . readImpl = function ( ty ) {
5250 return function ( offset ) {
5351 return function ( buf ) {
54- return buf [ ' read' + ty ] ( offset ) ;
52+ return buf [ " read" + ty ] ( offset ) ;
5553 } ;
5654 } ;
5755} ;
@@ -71,8 +69,7 @@ exports.getAtOffsetImpl = function (just) {
7169 return function ( offset ) {
7270 return function ( buff ) {
7371 var octet = buff [ offset ] ;
74- return octet == null ? nothing
75- : just ( octet ) ;
72+ return octet == null ? nothing : just ( octet ) ;
7673 } ;
7774 } ;
7875 } ;
0 commit comments