Esempio n. 1
0
        private void SerializeType(BitWriter bitWriter, string value)
        {
            var bytes = FloEncoding.GetBytes(value, onlyCharacters: true);

            bitWriter.WriteBits(bytes, value.Length * 5);
        }
        private void SerializeType(BitWriter bitWriter, string value, bool onlyCharacters = false)
        {
            var bytes = FloEncoding.GetBytes(value, onlyCharacters);

            bitWriter.WriteBits(bytes, value.Length * (onlyCharacters ? 5 : 6));
        }