MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / writeString

Method writeString

src/parsers/BinaryWriter.ts:88–93  ·  view source on GitHub ↗

* Write a null-terminated ASCII string. * Matches COLMAP's string format in binary files.

(str: string)

Source from the content-addressed store, hash-verified

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.

Callers 1

writeImagesBinaryFunction · 0.95

Calls 1

writeUint8Method · 0.95

Tested by

no test coverage detected