------------------------------------------------------------------------------------------------
| 210 | |
| 211 | // ------------------------------------------------------------------------------------------------ |
| 212 | string B3DImporter::ReadString() { |
| 213 | if (_pos > _buf.size()) { |
| 214 | Fail("EOF"); |
| 215 | } |
| 216 | string str; |
| 217 | while (_pos < _buf.size()) { |
| 218 | char c = (char)ReadByte(); |
| 219 | if (!c) { |
| 220 | return str; |
| 221 | } |
| 222 | str += c; |
| 223 | } |
| 224 | return string(); |
| 225 | } |
| 226 | |
| 227 | // ------------------------------------------------------------------------------------------------ |
| 228 | string B3DImporter::ReadChunk() { |