Exemple #1
0
        string LoadString(Ibasa.IO.BinaryReader reader)
        {
            StringBuilder builder = new StringBuilder();
            char          c;

            while ((c = reader.ReadChar()) != '\0')
            {
                builder.Append(c);
            }
            return(builder.ToString());
        }
Exemple #2
0
        string GetDirectoryName(uint offset)
        {
            Reader.Seek(DirectoryNameOffset + offset, SeekOrigin.Begin);

            StringBuilder builder = new StringBuilder();

            char c;

            while ((c = Reader.ReadChar()) != '\0')
            {
                builder.Append(c);
            }

            return(builder.ToString());
        }