Lines Matching defs:sd
1770 SAVESTREAM sd;
1774 memset(&sd, 0, sizeof(sd));
1776 sd.stream = fopen(cFileName, "wt");
1777 if (!sd.stream) return FALSE;
1782 WriteHeader(it8, &sd);
1783 WriteDataFormat(&sd, it8);
1784 WriteData(&sd, it8);
1787 if (fclose(sd.stream) != 0) return FALSE;
1796 SAVESTREAM sd;
1800 memset(&sd, 0, sizeof(sd));
1802 sd.stream = NULL;
1803 sd.Base = (cmsUInt8Number*) MemPtr;
1804 sd.Ptr = sd.Base;
1806 sd.Used = 0;
1808 if (sd.Base)
1809 sd.Max = *BytesNeeded; // Write to memory?
1811 sd.Max = 0; // Just counting the needed bytes
1816 WriteHeader(it8, &sd);
1817 WriteDataFormat(&sd, it8);
1818 WriteData(&sd, it8);
1821 sd.Used++; // The \0 at the very end
1823 if (sd.Base)
1824 *sd.Ptr = 0;
1826 *BytesNeeded = sd.Used;