charptr32 filename
bool32.rising save
bool32.rising load
int32.positive start
int32.positive length
int32.positive offset
None
objref table
objref SDapi
bool trig;
if (inlet_load && !trig) {
trig = 1;
int filesize = attr_SDapi.fsize(inlet_filename);
int dstsize = (attr_table.LENGTH - inlet_offset) * sizeof(*attr_table.array);
int rem_sz = (filesize > dstsize) ? dstsize : filesize;
attr_SDapi.fload(inlet_filename, (char *)&attr_table.array[inlet_offset],
rem_sz);
}
if (inlet_save && !trig) {
trig = 1;
int rem_sz = inlet_length * sizeof(*attr_table.array);
attr_SDapi.fsave(inlet_filename, (char *)&attr_table.array[inlet_start],
rem_sz);
}
if (!inlet_load && !inlet_save)
trig = 0;