code: private AmqpBuffer putBit(Boolean v)
      {       
          byte value = 0;
          if (v)
          {
              value = 1;
          }
          if (this.bitCount > 0)
          {
              byte lastByte = this.getAt(this.position() - 1);
              lastByte = (byte)((value << this.bitCount) | lastByte);
              this.putAt(this.position() - 1, lastByte);
          }
          else
          {
              this.putUnsigned(value);
          }
          return this;
      }
docs: Packs one (of possibly several) boolean values as bits into a single 8-bit
  field.
  
  If the last value written was a bit, the buffer's bit flag is false.
  If the buffer's bit flag is set, putBit will try to pack the current bit
  value into the same byte.