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); } }