Home | History | Annotate | Download | only in cups

Lines Matching defs:bytes

518 		  int        datalen)	/* I - Length of data in bytes */
1069 ssize_t bytes, /* Length of formatted value */
1070 max_bytes; /* Maximum number of bytes for value */
1103 bytes = (ssize_t)strlen(s);
1112 if ((bytes = vsnprintf(buffer, sizeof(buffer), format, ap)) < 0)
1158 if (bytes >= max_bytes)
3106 _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP name larger than 32767 bytes."), 1);
3309 _("IPP value larger than 32767 bytes."), 1);
3323 _("IPP integer value not 4 bytes."), 1);
3326 _("IPP enum value not 4 bytes."), 1);
3412 _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP date value not 11 bytes."), 1);
3430 _("IPP resolution value not 9 bytes."), 1);
3457 _("IPP rangeOfInteger value not 8 bytes."), 1);
3486 "minimum 4 bytes."), 1);
3490 "minimum 4 bytes."), 1);
3569 _("IPP begCollection value not 0 bytes."), 1);
3590 _("IPP endCollection value not 0 bytes."), 1);
4395 ssize_t bytes, /* Length of formatted value */
4396 max_bytes; /* Maximum number of bytes for value */
4429 bytes = (ssize_t)strlen(s);
4438 if ((bytes = vsnprintf(buffer, sizeof(buffer), format, ap)) < 0)
4484 if (bytes >= max_bytes)
5509 * Version = 2 bytes
5510 * Operation/Status Code = 2 bytes
5511 * Request ID = 4 bytes
5512 * Total = 8 bytes
5873 * bytes since the 2-byte length is a signed (twos-complement)
6250 * 2-byte length and the bytes in the unknown
6304 DEBUG_printf(("2ippWriteIO: wrote %d bytes",
6607 size_t bytes; /* Number of bytes */
6617 DEBUG_puts("4ipp_length: Returning 0 bytes");
6622 * Start with 8 bytes for the IPP message header...
6625 bytes = collection ? 0 : 8;
6641 bytes ++; /* Group tag */
6648 "bytes=" CUPS_LLFMT, attr->name, attr->num_values, CUPS_LLCAST bytes));
6651 bytes += (size_t)attr->num_values;/* Value tag for each value */
6653 bytes += (size_t)(5 * attr->num_values);
6655 bytes += (size_t)(2 * attr->num_values);
6657 bytes += strlen(attr->name); /* Name */
6658 bytes += (size_t)(2 * attr->num_values);
6662 bytes += 5; /* Add membername overhead */
6677 bytes += (size_t)(4 * attr->num_values);
6681 bytes += (size_t)attr->num_values;
6696 bytes += strlen(value->string.text);
6700 bytes
6704 bytes += (size_t)(9 * attr->num_values);
6708 bytes += (size_t)(8 * attr->num_values);
6713 bytes += (size_t)(4 * attr->num_values);
6721 bytes += strlen(value->string.language);
6724 bytes += strlen(value->string.text);
6732 bytes += ipp_length(value->collection, 1);
6739 bytes += (size_t)value->unknown.length;
6745 * Finally, add 1 byte for the "end of attributes" tag or 5 bytes
6750 bytes += 5;
6752 bytes ++;
6754 DEBUG_printf(("4ipp_length: Returning " CUPS_LLFMT " bytes", CUPS_LLCAST bytes));
6756 return (bytes);
6764 static ssize_t /* O - Number of bytes read */
6769 ssize_t tbytes, /* Total bytes read */
6770 bytes; /* Bytes read this pass */
6776 * Loop until all bytes are read...
6779 for (tbytes = 0, bytes = 0;
6781 tbytes += bytes, buffer += bytes)
6800 bytes = -1;
6816 bytes = -1;
6821 if ((bytes = httpRead2(http, (char *)buffer, length - (size_t)tbytes)) < 0)
6829 bytes = 0;
6832 else if (bytes == 0)
6837 * Return the number of bytes read...
6840 if (tbytes == 0 && bytes < 0)
6843 DEBUG_printf(("8ipp_read_http: Returning " CUPS_LLFMT " bytes", CUPS_LLCAST tbytes));
6853 static ssize_t /* O - Number of bytes read */
6856 size_t length) /* I - Number of bytes to read */
7022 static ssize_t /* O - Number of bytes written */
7025 size_t length) /* I - Number of bytes to write */