code: public static ByteBuf copyBoolean(boolean value) {
          ByteBuf buf = buffer(1);
          buf.writeBoolean(value);
          return buf;
      }
docs: Creates a new single-byte big-endian buffer that holds the specified boolean value.