 
     process.stdout.write dump
 
+  @zeropad: (width, num) ->
+    num += ''
+    while num.length < width
+      num = '0' + num
+    num
+
 module.exports = Bits

catch e
  # buffertools is not available

zeropad = (width, num) ->
  num += ''
  while num.length < width
    num = '0' + num
  num

class Bits
  constructor: (buffer) ->
    @buf = null

        strline += String.fromCharCode byte
      else
        strline += ' '
      dump += Bits.zeropad(2, byte.toString(16))
      col++
      if col is 16
        endline()
