static public function bufferize($data, $byteSize = null, $paddingDirection = self::PAD_LEFT)
    {
        if (is_integer($data)) {
            // Buffer from Decimal
            return Buffer::fromInt($data, $byteSize, null, $paddingDirection);
        }

        $charLen = strlen($data);
        if (ctype_xdigit($data) && $charLen % 32 === 0) {
            // Buffer from Hexadecimal
            return Buffer::fromHex($data, $byteSize, $paddingDirection);
        }

        // Buffer from Normalized String
        return Buffer::fromString($data, $paddingDirection);
    }