BFCodec class