Lines Matching defs:bytes

1 /* struct module -- pack values into and (out of) bytes objects */
97 in std mode, they're 8 bytes on all platforms. */
355 /* ulargest is the largest unsigned value with f->size bytes.
579 "char format requires a bytes object of length 1");
813 const unsigned char *bytes = (const unsigned char *)p;
815 x = (x<<8) | *bytes++;
828 const unsigned char *bytes = (const unsigned char *)p;
830 x = (x<<8) | *bytes++;
840 const unsigned char *bytes = (const unsigned char *)p;
842 x = (x<<8) | *bytes++;
855 const unsigned char *bytes = (const unsigned char *)p;
857 x = (x<<8) | *bytes++;
1034 const unsigned char *bytes = (const unsigned char *)p;
1036 x = (x<<8) | bytes[--i];
1049 const unsigned char *bytes = (const unsigned char *)p;
1051 x = (x<<8) | bytes[--i];
1061 const unsigned char *bytes = (const unsigned char *)p;
1063 x = (x<<8) | bytes[--i];
1076 const unsigned char *bytes = (const unsigned char *)p;
1078 x = (x<<8) | bytes[--i];
1487 "Struct() argument 1 must be a str or bytes object, "
1578 in bytes must be Struct.size.
1591 "unpack requires a buffer of %zd bytes",
1608 The buffer's size in bytes, starting at position offset, must be
1625 "not enough data to unpack %zd bytes at offset %zd",
1643 "unpack_from requires a buffer of at least %zu bytes for "
1644 "unpacking %zd bytes at offset %zd "
1757 Tuples are unpacked from the given bytes source, like a repeated
1760 Requires that the bytes length be a multiple of the struct size.
1789 "a multiple of %zd bytes",
1835 "argument for 's' must be a bytes object");
1857 "argument for 'p' must be a bytes object");
1893 "S.pack(v1, v2, ...) -> bytes\n\
1895 Return a bytes object containing values v1, v2, ... packed according\n\
1939 and write the packed bytes into the writable buffer buf starting at\n\
1990 "no space to pack %zd bytes at offset %zd",
2016 "pack_into requires a buffer of at least %zu bytes for "
2017 "packing %zd bytes at offset %zd "
2051 "S.__sizeof__() -> size of S in memory, in bytes");
2084 {"size", (getter)s_get_size, (setter)NULL, "struct size in bytes", NULL},
2186 Return size in bytes of the struct described by the format string.
2197 "pack(format, v1, v2, ...) -> bytes\n\
2199 Return a bytes object containing the values v1, v2, ... packed according\n\
2226 the packed bytes into the writable buffer buf starting at offset. Note\n\
2259 The buffer's size in bytes must be calcsize(format).
2301 Return an iterator yielding tuples unpacked from the given bytes.
2303 The bytes are unpacked according to the format string, like
2306 Requires that the bytes length be a multiple of the format struct size.
2333 Python bytes objects are used to hold the data representing the C struct\n\