- Sort Score
- Num 10 results
- Language All
Results 241 - 250 of 599 for decodeTo (0.05 seconds)
-
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
// Test decode method byte[] buffer = new byte[512]; int bufferIndex = 0; int expectedDecodeLength = 128; when(response.decode(buffer, bufferIndex)).thenReturn(expectedDecodeLength); assertEquals(expectedDecodeLength, response.decode(buffer, bufferIndex)); // Test encode methodCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java
return 0; } /** * {@inheritDoc} * * @see jcifs.internal.smb1.ServerMessageBlock#decode(byte[], int) */ @Override public int decode(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException { final int len = super.decode(buffer, bufferIndex); if (this.byteCount == 0) { // otherwise hasMore may not be correctly setCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 12.3K bytes - Click Count (0) -
src/bufio/scan.go
} // Fast path 2: Correct UTF-8 decode without error. _, width := utf8.DecodeRune(data) if width > 1 { // It's a valid encoding. Width cannot be one for a correctly encoded // non-ASCII rune. return width, data[0:width], nil } // We know it's an error: we have width==1 and implicitly r==utf8.RuneError. // Is the error because there wasn't a full rune to be decoded?
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed May 21 18:05:26 GMT 2025 - 14.2K bytes - Click Count (0) -
cmd/last-minute_gen_test.go
v := AccElem{} var buf bytes.Buffer msgp.Encode(&buf, &v) m := v.Msgsize() if buf.Len() > m { t.Log("WARNING: TestEncodeDecodeAccElem Msgsize() is inaccurate") } vn := AccElem{} err := msgp.Decode(&buf, &vn) if err != nil { t.Error(err) } buf.Reset() msgp.Encode(&buf, &v) err = msgp.NewReader(&buf).Skip() if err != nil { t.Error(err) } }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 6.8K bytes - Click Count (0) -
cmd/batch-expire_gen_test.go
var buf bytes.Buffer msgp.Encode(&buf, &v) m := v.Msgsize() if buf.Len() > m { t.Log("WARNING: TestEncodeDecodeBatchJobExpire Msgsize() is inaccurate") } vn := BatchJobExpire{} err := msgp.Decode(&buf, &vn) if err != nil { t.Error(err) } buf.Reset() msgp.Encode(&buf, &v) err = msgp.NewReader(&buf).Skip() if err != nil { t.Error(err) } }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 6.9K bytes - Click Count (0) -
docs_src/custom_request_and_route/tutorial002_an_py39.py
return await original_route_handler(request) except RequestValidationError as exc: body = await request.body() detail = {"errors": exc.errors(), "body": body.decode()} raise HTTPException(status_code=422, detail=detail) return custom_route_handler app = FastAPI() app.router.route_class = ValidationErrorLoggingRoute @app.post("/")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 947 bytes - Click Count (0) -
docs_src/custom_request_and_route/tutorial002_py310.py
return await original_route_handler(request) except RequestValidationError as exc: body = await request.body() detail = {"errors": exc.errors(), "body": body.decode()} raise HTTPException(status_code=422, detail=detail) return custom_route_handler app = FastAPI() app.router.route_class = ValidationErrorLoggingRoute @app.post("/")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 935 bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/TextTransformer.java
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sun Jul 06 02:13:03 GMT 2025 - 6.5K bytes - Click Count (0) -
docs/debugging/healing-bin/main.go
return err } dec := json.NewDecoder(buf) // Use number to preserve integers. dec.UseNumber() var htr map[string]any if err = dec.Decode(&htr); err != nil { return err } ht[file.Name] = htr } } b, err := json.MarshalIndent(ht, "", " ") if err != nil { return err } fmt.Println(string(b))
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 3.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/LockingAndXRange.java
*/ public long getLengthInBytes() { return this.lengthInBytes; } /** * {@inheritDoc} * * @see jcifs.Decodable#decode(byte[], int, int) */ @Override public int decode(final byte[] buffer, final int bufferIndex, final int len) throws SMBProtocolDecodingException { if (this.largeFile) { this.pid = SMBUtil.readInt2(buffer, bufferIndex);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.1K bytes - Click Count (0)