@@ -78,7 +78,7 @@ auto SindarinAPI::checkSync(const std::string &url, CheckSyncRequest &req, Check
7878 ConvertToJson (req, body);
7979
8080 size_t serializedMaxSize = (*doc).memoryUsage () * 2 ;
81- auto reqBody = SpiRamArrayPtr <char >(serializedMaxSize);
81+ auto reqBody = SpiramArrayPtr <char >(serializedMaxSize);
8282 size_t bodyLength = serializeJson (*doc, reqBody.get (), serializedMaxSize);
8383
8484 err = client->open (bodyLength);
@@ -328,7 +328,7 @@ auto SindarinAPI::uploadTelemetryFile(SFile &telemetryFile, const std::string &l
328328
329329 // Write the file data in chunks
330330 size_t bufferSize = 4096 ;
331- auto buffer = SpiRamArrayPtr <char >(bufferSize);
331+ auto buffer = SpiramArrayPtr <char >(bufferSize);
332332 int totalBytesWritten = 0 ;
333333 int writeSize = telemetryFile.size ();
334334 while (totalBytesWritten < writeSize) {
@@ -386,7 +386,7 @@ auto SindarinAPI::uploadCrashReport(SFile &crashFile, const std::string &content
386386 defer { client->close (); };
387387
388388 size_t bufferSize = 4096 ;
389- auto buffer = SpiRamArrayPtr <char >(bufferSize);
389+ auto buffer = SpiramArrayPtr <char >(bufferSize);
390390
391391 int totalBytesWritten = 0 ;
392392 while (totalBytesWritten < writeSize) {
@@ -433,7 +433,7 @@ auto SindarinAPI::getServerTime(time_t *time, bool useBle,
433433 }
434434
435435 // Read the timestamp directly as a string
436- auto buffer = SpiRamArrayPtr <char >(contentLength + 1 );
436+ auto buffer = SpiramArrayPtr <char >(contentLength + 1 );
437437 auto stream = client->makeReadStream ();
438438 size_t totalRead = 0 ;
439439
@@ -484,7 +484,7 @@ auto SindarinAPI::askQuestion(const BookQuestionRequest &req, BookQuestionRespon
484484 req.toJson (body);
485485
486486 size_t serializedMaxSize = (*doc).memoryUsage () * 2 ;
487- auto reqBody = SpiRamArrayPtr <char >(serializedMaxSize);
487+ auto reqBody = SpiramArrayPtr <char >(serializedMaxSize);
488488 size_t bodyLength = serializeJson (*doc, reqBody.get (), serializedMaxSize);
489489
490490 err = client->open (bodyLength);
@@ -678,7 +678,7 @@ auto SindarinAPI::submitLastReadPageChoice(bool gotoLastReadPage, bool useBle,
678678 body[" goto_last_read_page" ] = gotoLastReadPage;
679679
680680 size_t serializedMaxSize = (*doc).memoryUsage () * 2 ;
681- auto reqBody = SpiRamArrayPtr <char >(serializedMaxSize);
681+ auto reqBody = SpiramArrayPtr <char >(serializedMaxSize);
682682 size_t bodyLength = serializeJson (*doc, reqBody.get (), serializedMaxSize);
683683
684684 err = client->open (bodyLength);
@@ -743,7 +743,7 @@ auto SindarinAPI::fetchKindleChaptersWithUuids(const std::string &kindleUuid, in
743743 body[" page" ] = currentPage;
744744
745745 size_t serializedMaxSize = (*doc).memoryUsage () * 2 ;
746- auto reqBody = SpiRamArrayPtr <char >(serializedMaxSize);
746+ auto reqBody = SpiramArrayPtr <char >(serializedMaxSize);
747747 size_t serializedSize = serializeJson (*doc, reqBody.get (), serializedMaxSize);
748748
749749 log_d (" Request body: %s" , reqBody.get ());
@@ -826,7 +826,7 @@ auto SindarinAPI::navigateKindleToChapter(const std::string &kindleUuid,
826826 body[" page" ] = currentPage;
827827
828828 size_t serializedMaxSize = (*doc).memoryUsage () * 2 ;
829- auto reqBody = SpiRamArrayPtr <char >(serializedMaxSize);
829+ auto reqBody = SpiramArrayPtr <char >(serializedMaxSize);
830830 size_t serializedSize = serializeJson (*doc, reqBody.get (), serializedMaxSize);
831831
832832 log_d (" Request body: %s" , reqBody.get ());
0 commit comments