- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 797 for CBytes (0.05 seconds)
-
tests/test_file_and_form_order_issue_9116.py
app = FastAPI() @app.post("/file_before_form") def file_before_form( file: bytes = File(), city: str = Form(), ): return {"file_content": file, "city": city} @app.post("/file_after_form") def file_after_form( city: str = Form(), file: bytes = File(), ): return {"file_content": file, "city": city} @app.post("/file_list_before_form")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2.3K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Chars.java
* @throws IllegalArgumentException if {@code bytes} has fewer than 2 elements */ @GwtIncompatible // doesn't work public static char fromByteArray(byte[] bytes) { checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES); return fromBytes(bytes[0], bytes[1]); } /** * Returns the {@code char} value whose byte representation is the given 2 bytes, in big-endianCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 24.2K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Shorts.java
* @throws IllegalArgumentException if {@code bytes} has fewer than 2 elements */ @GwtIncompatible // doesn't work public static short fromByteArray(byte[] bytes) { checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES); return fromBytes(bytes[0], bytes[1]); } /** * Returns the {@code short} value whose byte representation is the given 2 bytes, in big-endianCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Oct 22 18:14:49 GMT 2025 - 25.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java
Random r = new Random(1234567); for (int length = 0; length < 1000; length++) { byte[] bytes = new byte[length]; r.nextBytes(bytes); assertCrc(referenceCrc(bytes), bytes); } } private static int referenceCrc(byte[] bytes) { int crc = ~0; for (byte b : bytes) { crc = (crc >>> 8) ^ Crc32cHashFunction.Crc32cHasher.byteTable[(crc ^ b) & 0xFF]; } return ~crc;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 6.6K bytes - Click Count (0) -
cmd/httprange.go
) const ( byteRangePrefix = "bytes=" ) // HTTPRangeSpec represents a range specification as supported by S3 GET // object request. // // Case 1: Not present -> represented by a nil RangeSpec // Case 2: bytes=1-10 (absolute start and end offsets) -> RangeSpec{false, 1, 10} // Case 3: bytes=10- (absolute start offset with end offset unspecified) -> RangeSpec{false, 10, -1}Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.9K bytes - Click Count (0) -
docs_src/json_base64_bytes/tutorial001_py310.py
class DataInput(BaseModel): description: str data: bytes model_config = {"val_json_bytes": "base64"} class DataOutput(BaseModel): description: str data: bytes model_config = {"ser_json_bytes": "base64"} class DataInputOutput(BaseModel): description: str data: bytes model_config = { "val_json_bytes": "base64",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 21 13:01:31 GMT 2026 - 892 bytes - Click Count (0) -
docs/debugging/inspect/export.go
b, e := io.ReadAll(r) if e != nil { return nil, e } b, _, minor, e := checkXL2V1(b) if e != nil { return nil, e } buf := bytes.NewBuffer(nil) var data xlMetaInlineData switch minor { case 0: _, e = msgp.CopyToJSON(buf, bytes.NewReader(b)) if e != nil { return nil, e } case 1, 2: v, b, e := msgp.ReadBytesZC(b) if e != nil { return nil, e }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 9.2K bytes - Click Count (1) -
docs/es/docs/advanced/stream-data.md
Esto también significa que con `StreamingResponse` tienes la libertad y la responsabilidad de producir y codificar los bytes de datos exactamente como necesites enviarlos, independientemente de las anotaciones de tipos. 🤓 ### Transmitir bytes { #stream-bytes } Uno de los casos de uso principales sería transmitir `bytes` en lugar de strings; por supuesto puedes hacerlo. {* ../../docs_src/stream_data/tutorial001_py310.py ln[44:47] hl[47] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:12:26 GMT 2026 - 5.7K bytes - Click Count (0) -
tests/test_list_bytes_file_order_preserved_issue_14811.py
) -> None: app = FastAPI() @app.post("/upload") async def upload(files: Annotated[list[bytes], File()]): # return something that makes order obvious return [b[0] for b in files] original_read = StarletteUploadFile.read async def patched_read(self: StarletteUploadFile, size: int = -1) -> bytes: # Make the FIRST file slower *deterministically* if self.filename == "slow.txt":Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 10 12:14:38 GMT 2026 - 1.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java
byte[] dst = new byte[expectedBytes.length]; int dstIndex = 0; // Execute the method to write bytes int bytesWritten = smbComNegotiate.writeBytesWireFormat(dst, dstIndex); // Verify the number of bytes written assertEquals(expectedBytes.length, bytesWritten, "The number of bytes written should match the length of the dialect string."); // Verify the content of the destination array
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4K bytes - Click Count (0)