Home | History | Annotate | Download | only in lib

Lines Matching refs:spc

323     POOL_PRINT      *spc;
325 spc = Context;
332 if (spc->len + len > spc->maxlen) {
333 len = spc->maxlen - spc->len;
340 CopyMem (spc->str + spc->len, Buffer, len * sizeof(CHAR16));
341 spc->len += len;
347 if (spc->len < spc->maxlen) {
348 spc->str[spc->len] = 0;
349 } else if (spc->maxlen) {
350 spc->str[spc->maxlen] = 0;
365 POOL_PRINT *spc;
367 spc = Context;
368 newlen = spc->len + StrLen(Buffer) + 1;
374 if (newlen > spc->maxlen) {
381 spc->maxlen = newlen;
382 spc->str = ReallocatePool (
383 spc->str,
384 spc->len * sizeof(CHAR16),
385 spc->maxlen * sizeof(CHAR16)
388 if (!spc->str) {
389 spc->len = 0;
390 spc->maxlen = 0;
407 IN OUT POOL_PRINT *spc,
416 ps.Context = spc;
456 POOL_PRINT spc;
458 spc.str = Str;
459 spc.maxlen = StrSize / sizeof(CHAR16) - 1;
460 spc.len = 0;
462 _PoolCatPrint (fmt, args, &spc, _SPrint);
464 return spc.len;
530 POOL_PRINT spc;
531 ZeroMem (&spc, sizeof(spc));
532 _PoolCatPrint (fmt, args, &spc, _PoolPrint);
533 return spc.str;