public override string Read(aBinaryReader reader) { var value = base.Read(reader); #if DEBUG aError.Check <Exception>(reader.ReadChar() == '\0', "BZSTR is not null-terminated."); #else reader.Step(1); #endif return(value); }
public override string Read(aBinaryReader reader) { var sb = new StringBuilder(256); char c; while ((c = reader.ReadChar()) != '\x00') { sb.Append(c); } return(sb.ToString()); }