prepare for implementing new ins format

This commit is contained in:
tildearrow 2022-11-17 19:07:40 -05:00
parent afcc292c0c
commit dbcd7f31a8
3 changed files with 78 additions and 0 deletions

View file

@ -23,6 +23,18 @@
#include "../ta-log.h"
#include "../fileutils.h"
void DivInstrument::putInsData2(SafeWriter* w, bool fui) {
size_t blockStartSeek, blockEndSeek;
if (fui) {
w->write("FINS",4);
} else {
w->write("INST",4);
blockStartSeek=w->tell();
w->writeI(0);
}
}
void DivInstrument::putInsData(SafeWriter* w) {
size_t blockStartSeek, blockEndSeek;

View file

@ -571,6 +571,12 @@ struct DivInstrument {
*/
void putInsData(SafeWriter* w);
/**
* save the instrument to a SafeWriter using new format.
* @param w the SafeWriter in question.
*/
void putInsData2(SafeWriter* w, bool fui=false);
/**
* read instrument data in .fui format.
* @param reader the reader.