SproutCMS

This is the code documentation for the SproutCMS project

class FixedBitNotation

The FixedBitNotation class is for binary to text conversion. It
can handle many encoding schemes, formally defined or not, that
use a fixed number of bits to encode each character.

See also:
https://github.com/ademarre/binary-to-text-php/commit/d44968b55fada4c1fac0902f7595b23d2814b2f2

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-16
**/
class NewClassName extends FixedBitNotation {
    
    /**
    * Constructor
    **/
    public function __construct (integer $bitsPerCharacter, string $chars, boolean $rightPadFinalBits, boolean $padFinalGroup, string $padCharacter) {
        // Method code goes here
    }
    
    /**
    * Encode a string
    **/
    public function encode (string $rawString) {
        // Method code goes here
    }
    
    /**
    * Decode a string
    **/
    public function decode (string $encodedString, boolean $caseSensitive, boolean $strict) {
        // Method code goes here
    }
    
}
?>