Lines Matching refs:Used
81 sum->Used = 0; /* clean it out, retaining allocated memory */
84 sum = U_PO_append(sum, po->Data, po->Used); /* the EMF+ record itself */
87 rec = U_EMRCOMMENT_set(sum->Used, sum->Data); /* stuff it into the EMF comment */
502 is allocated for Data, Size is set to 1, and Used to 0.
516 po->Used = Use;
539 if(!po->Data || po->Used + Size > po->Size){
540 po->Size = po->Used + Size;
551 if(Data){ memcpy(po->Data + po->Used, Data, Size); }
552 else { memset(po->Data + po->Used, 0, Size); }
553 po->Used += Size;
568 if((StripE && (Src->Used == 4)) || !Src->Used){ return(po); } /* appending nothing is not an error */
570 size_t Size = Src->Used; /* append only what is used */
577 if(!ipo->Data || ipo->Used + Size > ipo->Size){
578 ipo->Size = ipo->Used + Size;
589 if(StripE){ memcpy(ipo->Data + ipo->Used, Data + 4, Size); } /* Size is already 4 less, skip the leading Elements value */
590 else { memcpy(ipo->Data + ipo->Used, Data, Size); } /* copy everything */
592 else { memset(ipo->Data + ipo->Used, 0, Size); } /* set everything */
593 ipo->Used += Size;
729 \brief Clear U_DPSEUDO_OBJ's. Memory is retained, Elements and Used values are set to 0.
736 if(dpo->poPoints){ dpo->poPoints->Used = 0; }
737 if(dpo->poTypes){ dpo->poTypes->Used = 0; }
1591 {Bd->Data, Bd->Used, 1, U_XE},
1613 {Ld->Data, Ld->Used, 1, U_XE},
1666 {Id->Data, Id->Used, 1, U_XE},
1724 pad = (0x3 & (Points->Used + Types->Used));
1731 {Points->Data + 4, Points->Used - 4, 1, U_XE }, /* omit Points Elements */
1732 {Types->Data +4, Types->Used - 4, 1, U_XE }, /* omit Types Elements */
1813 {PenData->Data, PenData->Used, 1, U_XE},
1814 {Brush->Data, Brush->Used, 1, U_XE},
1836 {Nodes->Data, Nodes->Used, 1, U_XE},
1875 {(Sfd ? Sfd->Data : NULL), (Sfd ? Sfd->Used : 0), 1, U_XE},
1970 uint32_t Pad = UP4(Bm->Used) - Bm->Used; /* undocumented padding, must be present for at least PNG */
1973 {Bm->Data, Bm->Used, 1, U_XE},
1994 {(Ps ? Ps->Data : NULL), (Ps ? Ps->Used : 0), (Ps ? 1 : 0), U_LE},
2013 uint32_t CElements = (Colors->Used - 4)/4;
2018 {Colors->Data + 4, Colors->Used - 4, 1, U_XE}, /* omit Elements part of this PseudoObject */
2157 /* PO Used is size_t, might be 8 bytes, value in record must be 4 bytes */
2158 uint32_t Used = Path->Used;
2160 {&Used, 4, 1, U_LE},
2161 {Path->Data, Path->Used, 1, U_XE},
2252 /* PO Used is size_t, might be 8 bytes, value in record must be 4 bytes */
2253 uint32_t Used = Clc->Used;
2255 {&Used, 4, 1, U_LE},
2256 {Clc->Data, Clc->Used, 1, U_XE},
2331 {Clcod->Data, Clcod->Used, 1, U_XE},
2350 {(Fill ? Fill->Data : NULL), (Fill ? Fill->Used : 0), 1, U_XE},
2351 {(Line ? Line->Data : NULL), (Line ? Line->Used : 0), 1, U_XE},
2368 {Clc->Data, Clc->Used, 1, U_XE},
2534 {Path->Data, Path->Used, 1, U_XE},
2609 {Fg->Data, Fg->Used, 1, U_XE},
2610 {Bg->Data, Bg->Used, 1, U_XE},
2699 {(Lgbod->Used ? Lgbod->Data : NULL), Lgbod->Used, 1, U_XE}, /* optional Data can exist and Used can be zero, SERIAL_set would throw an error on that */
2732 {(Tm ? Tm->Data : NULL), (Tm ? Tm->Used : 0), 1, U_XE},
2733 {(Bc ? Bc->Data : NULL), (Bc ? Bc->Used : 0), 1, U_XE},
2734 {(BfH ? BfH->Data : NULL), (BfH ? BfH->Used : 0), 1, U_XE},
2735 {(BfV ? BfV->Data : NULL), (BfV ? BfV->Used : 0), 1, U_XE},
2757 {&Path->Data, Path->Used, 1, U_XE},
2826 {Gradient->Data, Gradient->Used, 1, U_XE}, /* includes Elements */
2827 {Boundary->Data, Boundary->Used, 1, U_XE},
2828 {(Data ? Data->Data : NULL), (Data ? Data->Used : 0), 1, U_XE},
2854 {(Tm ? Tm->Data : NULL), (Tm ? Tm->Used : 0), 1, U_XE},
2855 {(Pd ? Pd->Data : NULL), (Pd ? Pd->Used : 0), 1, U_XE},
2856 {(Fsd ? Fsd->Data : NULL), (Fsd ? Fsd->Used : 0), 1, U_XE},
2922 po = U_PO_append(po, poi->Data, poi->Used);
2954 if(Pod && ((Pod->Type != U_PMF_PENOPTIONALDATA_OID) || Pod->Used < 4))return(NULL);
2960 {(Pod ? Pod->Data + 4 : NULL), (Pod ? Pod->Used - 4 : 0), (Pod ? 1 : 0), (Pod ? U_XE : U_XX)},
3003 {((Flags & U_PD_Transform) ? Tm->Data : NULL), ((Flags & U_PD_Transform) ? Tm->Used : 0), 1, U_XE},
3011 {((Flags & U_PD_DLData ) ? DLData->Data : NULL), ((Flags & U_PD_DLData ) ? DLData->Used : 0), 1, U_XE},
3013 {((Flags & U_PD_CLData ) ? CmpndLineData->Data : NULL), ((Flags & U_PD_CLData ) ? CmpndLineData->Used : 0), 1, U_XE},
3014 {((Flags & U_PD_CustomStartCap) ? CSCapData->Data : NULL), ((Flags & U_PD_CustomStartCap) ? CSCapData->Used : 0), 1, U_XE},
3015 {((Flags & U_PD_CustomEndCap ) ? CECapData->Data : NULL), ((Flags & U_PD_CustomEndCap ) ? CECapData->Used : 0), 1, U_XE},
3078 po = U_PO_append(po, poi->Data, poi->Used);
3094 po = U_PO_append(po, poi->Data, poi->Used);
3100 po = U_PO_append(po, poi->Data, poi->Used);
3108 residual = 3 & po->Used;
3277 {(Rnd ? Rnd->Data : NULL), (Rnd ? Rnd->Used : 0), 1, U_XE},
3298 {Left->Data, Left->Used, 1, U_XE},
3299 {Right->Data, Right->Used, 1, U_XE},
3316 /* PO Used is size_t, might be 8 bytes, value in record must be 4 bytes */
3317 uint32_t Used = Path->Used;
3320 {&Used, 4, 1, U_LE},
3321 {Path->Data, Path->Used, 1, U_XE},
3340 {Color->Data, Color->Used, 1, U_XE},
3362 {(Ranges ? Ranges->Data : NULL), (Ranges ? Ranges->Used : 0), 1, U_XE},
3387 {Tbod->Data, Tbod->Used, 1, U_XE},
3408 {(Tm ? Tm->Data : NULL), (Tm ? Tm->Used : 0), 1, U_XE},
3409 {(Image ? Image->Data : NULL), (Image ? Image->Used : 0), 1, U_XE},
3712 {ph->Data, ph->Used, 1, U_XE},
3733 {ph->Data, ph->Used, 1, U_XE},
3754 {ph->Data, ph->Used, 1, U_XE},
3777 {ph->Data, ph->Used, 1, U_XE},
3811 {ph->Data, ph->Used, 1, U_XE},
3836 {ph->Data, ph->Used, 1, U_XE},
3860 {ph->Data, ph->Used, 1, U_XE},
3880 {ph->Data, ph->Used, 1, U_XE},
3899 {ph->Data, ph->Used, 1, U_XE},
3922 int Size=Version->Used + 3*4;
3927 {ph->Data, ph->Used, 1, U_XE},
3928 {Version->Data, Version->Used, 1, U_XE},
3952 int Size=Color->Used;
3955 {ph->Data, ph->Used, 1, U_XE},
3956 {Color->Data, Color->Used, 1, U_XE},
3984 int Size = 2*4 + Rect->Used;
3988 {ph->Data, ph->Used, 1, U_XE},
3991 {Rect->Data, Rect->Used, 1, U_XE},
4018 int Size = Points->Used;
4022 {ph->Data, ph->Used, 1, U_XE},
4023 {Points->Data, Points->Used, 1, U_XE}, /* Includes Elements */
4061 int Size = 4 + Points->Used;
4065 {ph->Data, ph->Used, 1, U_XE},
4067 {Points->Data, Points->Used, 1, U_XE}, /* includes Elements*/
4106 uint32_t Elements = (Points->Used - 4)/(ctype ? 4 : 8); /* This way do not need to worry about byte order */
4108 int Size = 3*4 + Points->Used;
4112 {ph->Data, ph->Used, 1, U_XE},
4116 {Points->Data, Points->Used, 1, U_XE}, /* Elements, points */
4146 uint32_t Elements = (Points->Used -4)/4;
4149 if( BrushID->Used != 4){ return(NULL); }
4155 int Size = 4 + BrushID->Used + 3*4 + Elements*2 + (Points->Used - 4);
4159 Size += Tm->Used;
4164 {ph->Data,ph->Used, 1, U_XE},
4165 {BrushID->Data, BrushID->Used, 1, U_XE},
4170 {Points->Data + 4, Points->Used - 4, 1, U_XE}, /* omit Elements */
4171 {(HasMatrix ? Tm->Data : NULL), (HasMatrix ? Tm->Used : 0), 1, U_XE},
4197 int Size = Rect->Used;
4201 {ph->Data, ph->Used, 1, U_XE},
4202 {Rect->Data, Rect->Used, 1, U_XE},
4233 int Size = 2*4 + SrcRect->Used + DstRect->Used;
4237 {ph->Data, ph->Used, 1, U_XE},
4240 {SrcRect->Data, SrcRect->Used, 1, U_XE},
4241 {DstRect->Data, DstRect->Used, 1, U_XE},
4279 int Size = 2*4 + SrcRect->Used + Points->Used;
4283 {ph->Data, ph->Used, 1, U_XE},
4286 {SrcRect->Data, SrcRect->Used, 1, U_XE},
4287 {Points->Data, Points->Used, 1, U_XE}, /* includes Elements*/
4315 int Size = Points->Used;
4319 {ph->Data, ph->Used, 1, U_XE},
4320 {Points->Data, Points->Used, 1, U_XE}, /* includes Elements */
4344 {ph->Data, ph->Used, 1, U_XE},
4374 int Size = 2*4 + Rect->Used;
4378 {ph->Data, ph->Used, 1, U_XE},
4381 {Rect->Data, Rect->Used, 1, U_XE},
4410 int Size = Rects->Used + (just1 ? 4 : 0); /* Elements in Rects for array, not for single */
4414 {ph->Data, ph->Used, 1, U_XE},
4416 {Rects->Data, Rects->Used, 1, U_XE}, /* Elements + Array, already stored in Rects, if an array was passed in, just rect if a single */
4445 if( BrushID->Used != 4){ return(NULL); }
4451 int Size = BrushID->Used + 2*4 + Rect->Used +2*Length;
4457 {ph->Data, ph->Used, 1, U_XE},
4458 {BrushID->Data, BrushID->Used, 1, U_XE},
4461 {Rect->Data, Rect->Used, 1, U_XE},
4486 if( BrushID->Used != 4){ return(NULL); }
4499 Size = BrushID->Used + 4 + Points->Used;
4503 {ph->Data, ph->Used, 1, U_XE},
4504 {BrushID->Data, BrushID->Used, 1, U_XE},
4506 {Points->Data, Points->Used, 1, U_XE}, /* includes Elements */
4526 if( BrushID->Used != 4){ return(NULL); }
4538 int Size = BrushID->Used + Rect->Used;
4542 {ph->Data, ph->Used, 1, U_XE},
4543 {BrushID->Data, BrushID->Used, 1, U_XE},
4544 {Rect->Data, Rect->Used, 1, U_XE},
4566 if( BrushID->Used != 4){ return(NULL); }
4572 Size = BrushID->Used;
4576 {ph->Data, ph->Used, 1, U_XE},
4577 {BrushID->Data, BrushID->Used, 1, U_XE},
4599 if( BrushID->Used != 4){ return(NULL); }
4611 int Size = BrushID->Used + 2*4 + Rect->Used;
4615 {ph->Data, ph->Used, 1, U_XE},
4616 {BrushID->Data, BrushID->Used, 1, U_XE},
4619 {Rect->Data, Rect->Used, 1, U_XE},
4639 if( BrushID->Used != 4){ return(NULL); }
4652 int Size = BrushID->Used + Points->Used;
4656 {ph->Data, ph->Used, 1, U_XE},
4657 {BrushID->Data, BrushID->Used, 1, U_XE},
4658 {Points->Data, Points->Used, 1, U_XE}, /* includes Elements */
4680 if( BrushID->Used != 4){ return(NULL); }
4693 int Size = BrushID->Used + Rects->Used + (just1 ? 4 : 0); /* Elements in Rects for array, not for single */
4697 {ph->Data, ph->Used, 1, U_XE},
4698 {BrushID->Data, BrushID->Used, 1, U_XE},
4700 {Rects->Data, Rects->Used, 1, U_XE}, /* Elements + Array, already stored in Rects, if an array was passed in, just rect if a single */
4720 if( BrushID->Used != 4){ return(NULL); }
4726 int Size = BrushID->Used;
4730 {ph->Data, ph->Used, 1, U_XE},
4731 {BrushID->Data, BrushID->Used, 1, U_XE},
4749 U_PSEUDO_OBJ *po = U_PMR_OBJECT_set(ObjID, otype, 0, 0, Po->Used, Po->Data); /* 0,0 = rec. not continued, TSize value (ignored) */
4811 {ph->Data, ph->Used, 1, U_XE },
4843 /* PO Used is size_t, might be 8 bytes, value in record must be 4 bytes */
4844 uint32_t Used = Siepb->Used;
4845 int Size = 16 + 4 + Siepb->Used;
4848 {ph->Data, ph->Used, 1, U_XE},
4850 {&Used, 4, 1, U_LE},
4851 {Siepb->Data, Siepb->Used, 1, U_XE},
4874 {ph->Data, ph->Used, 1, U_XE},
4895 {ph->Data, ph->Used, 1, U_XE},
4916 {ph->Data, ph->Used, 1, U_XE},
4937 {ph->Data, ph->Used, 1, U_XE},
4958 {ph->Data, ph->Used, 1, U_XE},
4980 {ph->Data, ph->Used, 1, U_XE},
5003 {ph->Data, ph->Used, 1, U_XE},
5024 {ph->Data, ph->Used, 1, U_XE},
5047 int Size = DstRect->Used + SrcRect->Used + 4;
5051 {ph->Data, ph->Used, 1, U_XE},
5052 {DstRect->Data, DstRect->Used, 1, U_XE},
5053 {SrcRect->Data, SrcRect->Used, 1, U_XE},
5075 {ph->Data, ph->Used, 1, U_XE},
5097 {ph->Data, ph->Used, 1, U_XE},
5119 {ph->Data, ph->Used, 1, U_XE},
5141 {ph->Data, ph->Used, 1, U_XE},
5162 if( Rects->Type == (U_PMF_RECT_OID | U_PMF_ARRAY_OID)){ ctype = 1; Elements = (Rects->Used - 4)/8; }
5163 else if(Rects->Type == (U_PMF_RECTF_OID | U_PMF_ARRAY_OID)){ ctype = 0; Elements = (Rects->Used - 4)/16; }
5167 int Size = Rects->Used; /* Rects includes Elements */
5171 {ph->Data, ph->Used, 1, U_XE},
5172 {Rects->Data, Rects->Used, 1, U_XE},
5192 int Size = sizeof(U_PMF_SETTSGRAPHICS) + (Palette ? Palette->Used : 0);
5196 {ph->Data, ph->Used, 1, U_XE},
5207 {(Palette ? Palette->Data : NULL), (Palette ? Palette->Used: 0), 1, U_XE},
5226 int Size = Tm->Used;
5230 {ph->Data, ph->Used, 1, U_XE},
5231 {Tm->Data, Tm->Used, 1, U_XE},
5251 {ph->Data, ph->Used, 1, U_XE},
5273 {ph->Data, ph->Used, 1, U_XE},
5296 {ph->Data, ph->Used, 1, U_XE},
5323 {ph->Data, ph->Used, 1, U_XE},
5345 int Size = Tm->Used;
5349 {ph->Data, ph->Used, 1, U_XE},
5350 {Tm->Data, Tm->Used, 1, U_XE},
5373 {ph->Data, ph->Used, 1, U_XE},