WriteUnicodeString() private method

private WriteUnicodeString ( int offset, string value ) : void
offset int
value string
return void
Ejemplo n.º 1
0
            private void WriteString(MemoryHolder address, int offset, string str)
            {
                SimpleType st = (SimpleType)_type;

                Debug.Assert(st._type == SimpleTypeKind.WChar && str.Length <= _length);
                if (str.Length < _length)
                {
                    str = str + '\x00';
                }
                address.WriteUnicodeString(offset, str);
            }
Ejemplo n.º 2
0
            private void WriteString(MemoryHolder address, int offset, string str)
            {
                SimpleType st = (SimpleType)_type;

                if (str.Length < _length)
                {
                    str = str + '\x00';
                }
                if (st._type == SimpleTypeKind.Char)
                {
                    address.WriteAnsiString(offset, str);
                }
                else
                {
                    address.WriteUnicodeString(offset, str);
                }
            }
Ejemplo n.º 3
0
            private void WriteString(MemoryHolder address, int offset, string str) {
                SimpleType st = (SimpleType)_type;
                if (str.Length < _length) {
                    str = str + '\x00';
                }
                if (st._type == SimpleTypeKind.Char) {
                    address.WriteAnsiString(offset, str);
                } else {
                    address.WriteUnicodeString(offset, str);
                }

            }