Home
last modified time | relevance | path

Searched refs:bufflen (Results 1 – 4 of 4) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlobject.c252 void luaO_chunkid (char *out, const char *source, size_t bufflen) { in luaO_chunkid() argument
255 if (l <= bufflen) /* small enough? */ in luaO_chunkid()
258 addstr(out, source + 1, bufflen - 1); in luaO_chunkid()
263 if (l <= bufflen) /* small enough? */ in luaO_chunkid()
267 bufflen -= LL(RETS); in luaO_chunkid()
268 memcpy(out, source + 1 + l - bufflen, bufflen * sizeof(char)); in luaO_chunkid()
274 bufflen -= LL(PRE RETS POS) + 1; /* save space for prefix+suffix+'\0' */ in luaO_chunkid()
275 if (l < bufflen && nl == NULL) { /* small one-line source? */ in luaO_chunkid()
280 if (l > bufflen) l = bufflen; in luaO_chunkid()
/device/generic/opengl-transport/host/commands/emugen/
DApiGen.cpp391 Var& var, EntryPoint* e, char* buff, size_t bufflen, in getVarEncodingSizeExpression() argument
395 snprintf(buff, bufflen, "%u", (unsigned int) var.type()->bytes()); in getVarEncodingSizeExpression()
400 snprintf(buff, bufflen, "8"); in getVarEncodingSizeExpression()
403 snprintf(buff, bufflen, "0"); in getVarEncodingSizeExpression()
405 snprintf(buff, bufflen, "__size_%s", var.name().c_str()); in getVarEncodingSizeExpression()
414 snprintf(buff, bufflen, "((%s != NULL) ? %s : 0)", varname, lenExpr); in getVarEncodingSizeExpression()
416 snprintf(buff, bufflen, "%s", lenExpr); in getVarEncodingSizeExpression()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Ddatetimemodule.c1362 isoformat_date(PyDateTime_Date *dt, char buffer[], int bufflen) in isoformat_date() argument
1365 x = PyOS_snprintf(buffer, bufflen, in isoformat_date()
1368 assert(bufflen >= x); in isoformat_date()
1373 isoformat_time(PyDateTime_DateTime *dt, char buffer[], int bufflen) in isoformat_time() argument
1378 x = PyOS_snprintf(buffer, bufflen, in isoformat_time()
1383 assert(bufflen >= x); in isoformat_time()
1385 x += PyOS_snprintf(buffer + x, bufflen - x, ".%06d", us); in isoformat_time()
1386 assert(bufflen >= x); in isoformat_time()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Ddatetimemodule.c1362 isoformat_date(PyDateTime_Date *dt, char buffer[], int bufflen) in isoformat_date() argument
1365 x = PyOS_snprintf(buffer, bufflen, in isoformat_date()
1368 assert(bufflen >= x); in isoformat_date()
1373 isoformat_time(PyDateTime_DateTime *dt, char buffer[], int bufflen) in isoformat_time() argument
1378 x = PyOS_snprintf(buffer, bufflen, in isoformat_time()
1383 assert(bufflen >= x); in isoformat_time()
1385 x += PyOS_snprintf(buffer + x, bufflen - x, ".%06d", us); in isoformat_time()
1386 assert(bufflen >= x); in isoformat_time()