Lines Matching defs:off
209 // variable "off" must be declared in the function
213 memcpy(A + off, D, C);\
214 ((B *) A)->offBmiSrc = off;\
216 off += C;\
217 memcpy(A + off, E, F);\
218 ((B *) A)->offBitsSrc = off;\
221 off += F;\
222 memset(A + off, 0, G - F); \
232 // variable "off" must be declared in the function
236 memcpy(A + off, D, C);\
237 ((B *) A)->offBmiMask = off;\
239 off += C;\
240 memcpy(A + off, Msk, F);\
241 ((B *) A)->offBitsMask = off;\
243 if(G - F){ memset(A + off, 0, G - F); }\
2074 int cbColors, cbColors4, off;
2083 off = sizeof(U_BITMAPINFOHEADER);
2084 memcpy(record + off, BmiColors, cbColors);
2085 off += cbColors;
2086 if(cbColors4 - cbColors){ memset(record + off, 0, cbColors4 - cbColors); }
2236 int szRgnArray,off;
2244 off = sizeof(U_RGNDATAHEADER);
2245 memcpy(record + off, Buffer, szRgnArray);
2402 int irecsize,cbDxArray,cbString4,cbString,off;
2420 off = sizeof(U_EMRTEXT); // location where variable pieces will start to be written
2422 memcpy(record + off,&rcl, sizeof(U_RECTL));
2423 off += sizeof(U_RECTL);
2425 loffDx = (uint32_t *)(record + off); // offDx will go here, but we do not know with what value yet
2426 off += sizeof(uint32_t);
2427 memcpy(record + off,String,cbString); // copy the string data to its buffer
2428 ((PU_EMRTEXT)record)->offString = off; // now save offset in the structure
2429 off += cbString;
2431 memset(record+off,0,cbString4-cbString); // keeps valgrind happy (initialize padding after string)
2432 off += cbString4-cbString;
2434 memcpy(record + off, Dx, cbDxArray); // copy the Dx data to its buffer
2435 *loffDx = off; // now save offDx to the structure
2905 int cbPolys,cbPoints,off;
2919 off = sizeof(U_EMRPOLYPOLYLINE) - 4 + cbPolys;
2920 memcpy(record + off,points,cbPoints);
2972 int cbPoints,cbPoints4,off;
2977 off = sizeof(U_EMR) + sizeof(U_RECTL) + sizeof(U_NUM_POINT16); // offset to the start of the variable region
2978 irecsize = off + cbPoints4; // First instance is in struct
2985 memcpy(record + off, points, cbPoints);
2987 off += cbPoints;
2988 memset(record + off, 0, cbPoints4 - cbPoints);
3078 int cbPoints,cbPolys,off;
3092 off = sizeof(U_EMRPOLYPOLYLINE16) - 4 + cbPolys;
3093 memcpy(record + off,points,cbPoints);
3102 int cbRgns,cbRgns4,rds,rds4,off;
3116 off = sizeof(U_EMRINVERTRGN) - sizeof(U_RGNDATA);
3117 memcpy(record + off, RgnData, rds);
3118 off += rds;
3119 if(rds < rds4){ memset(record + off,0, rds4 - rds); } // clear any unused bytes
3136 int cbImage,cbImage4,cbBmi,off;
3148 off = sizeof(U_EMRCREATEMONOBRUSH);
3149 memcpy(record + off, Bmi, cbBmi);
3150 ((PU_EMRCREATEMONOBRUSH) record)->offBmi = off;
3152 off += cbBmi;
3153 memcpy(record + off, Px, cbPx);
3154 ((PU_EMRCREATEMONOBRUSH) record)->offBits = off;
3185 int cbImage,cbImage4,cbBmi,off;
3202 off = sizeof(U_EMRALPHABLEND);
3243 uint32_t off;
3254 off = sizeof(U_EMRHEADER);
3276 ((PU_EMRHEADER) record)->offDescription = off;
3277 memcpy(record + off, Description, cbDesc);
3278 off += cbDesc;
3279 if(cbDesc < cbDesc4)memset(record + off,0,cbDesc4-cbDesc); // clear any unused bytes
3280 off += cbDesc4 - cbDesc;
3283 ((PU_EMRHEADER) record)->offPixelFormat = off;
3284 memcpy(record+off,pfmtDesc,cbPFD);
3493 uint32_t off;
3505 off = sizeof(U_EMREOF); //start of the variable region
3507 ((PU_EMREOF) record)->offPalEntries = off;
3508 memcpy(record+off,PalEntries,cbPals);
3509 off += cbPals;
3511 ptr = record + off;
4241 int cbPoints, cbAbTypes, cbAbTypes4, off;
4254 off = sizeof(U_EMR) + sizeof(U_RECTL) + sizeof(uint32_t); // offset to first variable part
4255 memcpy(record+off,aptl,cbPoints);
4256 off += cbPoints;
4257 memcpy(record+off,abTypes,cbAbTypes);
4258 off += cbAbTypes;
4259 if(cbAbTypes4 > cbAbTypes){ memset(record+off,0,cbAbTypes4-cbAbTypes); } // keeps valgrind happy (initialize padding after byte array)
4445 int cbRgns,cbRgns4,rds,rds4,off;
4460 off = sizeof(U_EMRFILLRGN) - sizeof(U_RGNDATA);
4461 memcpy(record + off, RgnData, rds);
4462 off += rds;
4463 if(rds < rds4){ memset(record + off,0, rds4 - rds); } // clear any unused bytes
4486 int cbRgns,cbRgns4,rds,rds4,off;
4502 off = sizeof(U_EMRFRAMERGN) - sizeof(U_RGNDATA);
4503 memcpy(record + off, RgnData, rds);
4504 off += rds;
4505 if(rds < rds4){ memset(record + off,0, rds4 - rds); } // clear any unused bytes
4547 int cbRgns,cbRgns4,rds,rds4,off;
4561 off = sizeof(U_EMREXTSELECTCLIPRGN) - sizeof(U_RGNDATA);
4562 memcpy(record + off, RgnData, rds);
4563 off += rds;
4564 if(rds < rds4){ memset(record + off,0, rds4 - rds); } // clear any unused bytes
4600 int cbImage,cbImage4,cbBmi,off;
4616 off = sizeof(U_EMRBITBLT);
4655 int cbImage,cbImage4,cbBmi,off;
4672 off = sizeof(U_EMRSTRETCHBLT);
4720 int cbImage,cbImage4,cbBmi,cbMskImage,cbMskImage4,cbMskBmi,off;
4740 off = sizeof(U_EMRMASKBLT);
4787 int cbImage,cbImage4,cbBmi,cbMskImage,cbMskImage4,cbMskBmi,off;
4806 off = sizeof(U_EMRPLGBLT);
4842 int cbImage,cbImage4,cbBmi,off;
4858 off = sizeof(U_EMRSETDIBITSTODEVICE);
4893 int cbImage,cbImage4,cbBmi,off;
4909 off = sizeof(U_EMRSTRETCHDIBITS);
4932 int cbLf,off;
4944 off = sizeof(U_EMR) + sizeof(uint32_t);
4945 memcpy(record + off, cptr, cbLf); // No need to add padding for either structure
5128 int cbPoints, cbAbTypes, cbAbTypes4, off;
5141 off = sizeof(U_EMR) + sizeof(U_RECTL) + sizeof(uint32_t); // offset to first variable part
5142 memcpy(record+off,aptl,cbPoints);
5143 off += cbPoints;
5144 memcpy(record+off,abTypes,cbAbTypes);
5145 off += cbAbTypes;
5146 if(cbAbTypes4 > cbAbTypes){ memset(record+off,0,cbAbTypes4-cbAbTypes); } // keeps valgrind happy (initialize padding after byte array)
5212 int cbImage,cbImage4,cbBmi,off;
5237 off = sizeof(U_EMREXTCREATEPEN) + cbStyleArray - sizeof(U_STYLEENTRY);
5240 off = sizeof(U_EMREXTCREATEPEN);
5244 memcpy(record + off, Bmi, cbBmi);
5245 ((PU_EMREXTCREATEPEN) record)->offBmi = off;
5247 off += cbBmi;
5248 memcpy(record + off, Px, cbImage);
5249 ((PU_EMREXTCREATEPEN) record)->offBits = off;
5251 off += cbImage;
5252 if(cbImage4 - cbImage){ memset(record + off, 0, cbImage4 - cbImage); }
5380 int irecsize,cbString,cbString4,cbRectl,off;
5401 off = sizeof(U_EMRSMALLTEXTOUT); //offset to the start of the variable fields
5403 memcpy(record + off, &rclBounds, cbRectl);
5404 off += cbRectl;
5406 memcpy(record + off, TextString, cbString);
5408 off += cbString;
5409 memset(record + off, 0, cbString4 - cbString);
5525 unsigned int cbTriVert,cbGradObj,off;
5545 off = sizeof(U_EMRGRADIENTFILL); // offset to TriVert field
5546 memcpy(record + off, TriVert, cbTriVert);
5547 off += cbTriVert;
5548 memcpy(record + off, GradObj, cbGradObj);
5549 off += cbGradObj;
5551 memset(record+off,0,cbGradObjAlloc - cbGradObj);
5580 unsigned int cbData4,off;
5593 off = sizeof(U_EMR) + sizeof(uint32_t) + sizeof(U_LOGCOLORSPACEW) + sizeof(uint32_t) + sizeof(U_CBDATA); // offset to Data field
5594 memcpy(record + off, Data, cbData);
5596 off += cbData;
5597 memset(record + off,0,cbData4-cbData);