* Write a null-terminated ASCII string. * Matches COLMAP's string format in binary files.
(str: string)
| 86 | * Matches COLMAP's string format in binary files. |
| 87 | */ |
| 88 | writeString(str: string): void { |
| 89 | for (let i = 0; i < str.length; i++) { |
| 90 | this.writeUint8(str.charCodeAt(i)); |
| 91 | } |
| 92 | this.writeUint8(0); // null terminator |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Get the final ArrayBuffer containing all written data. |
no test coverage detected