- Sort Score
- Result 10 results
- Languages All
Results 371 - 380 of 792 for encodes (0.05 sec)
-
src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequest.java
// Name: 4 bytes ("RqLs") // Padding: 4 bytes (to align data to 8-byte boundary) // Data: 32 bytes (lease V1 structure) return 16 + 4 + 4 + 32; } @Override public int encode(byte[] dst, int dstIndex) { int start = dstIndex; // Write context header SMBUtil.writeInt4(0, dst, dstIndex); // Next (offset to next context, 0 for last) dstIndex += 4;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 4.6K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
import java.net.ProtocolException import okio.Buffer import okio.BufferedSource import okio.ByteString import okio.ForwardingSource import okio.Source import okio.buffer /** * Streaming decoder of data encoded following Abstract Syntax Notation One (ASN.1). There are * multiple variants of ASN.1, including: * * * DER: Distinguished Encoding Rules. This further constrains ASN.1 for deterministic encoding.
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java
assertThrows(IllegalArgumentException.class, () -> new Smb2LeaseKey(new byte[17])); assertThrows(IllegalArgumentException.class, () -> new Smb2LeaseKey(new byte[0])); } @Test @DisplayName("Should encode lease key to buffer") void testEncode() { byte[] testBytes = new byte[] { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, (byte) 0x88, (byte) 0x99, (byte) 0xAA, (byte) 0xBB,
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
assertEquals(expectedDecodeLength, response.decode(buffer, bufferIndex)); // Test encode method byte[] dst = new byte[512]; int dstIndex = 0; int expectedEncodeLength = 64; when(response.encode(dst, dstIndex)).thenReturn(expectedEncodeLength); assertEquals(expectedEncodeLength, response.encode(dst, dstIndex)); // Test digest methods
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K bytes - Viewed (0) -
cmd/storage-rest-common_gen.go
} } } return } // EncodeMsg implements msgp.Encodable func (z *nsScannerResp) EncodeMsg(en *msgp.Writer) (err error) { // map header, size 2 // write "u" err = en.Append(0x82, 0xa1, 0x75) if err != nil { return } if z.Update == nil { err = en.WriteNil() if err != nil { return } } else { err = z.Update.EncodeMsg(en) if err != nil {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 7.9K bytes - Viewed (0) -
fastapi/exception_handlers.py
from fastapi.encoders import jsonable_encoder from fastapi.exceptions import RequestValidationError, WebSocketRequestValidationError from fastapi.utils import is_body_allowed_for_status_code from fastapi.websockets import WebSocket from starlette.exceptions import HTTPException from starlette.requests import Request from starlette.responses import JSONResponse, Response from starlette.status import WS_1008_POLICY_VIOLATION
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 16 17:21:48 UTC 2025 - 1.2K bytes - Viewed (0) -
docs_src/body_updates/tutorial001_py39.py
from typing import Union from fastapi import FastAPI from fastapi.encoders import jsonable_encoder from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: Union[str, None] = None description: Union[str, None] = None price: Union[float, None] = None tax: float = 10.5 tags: list[str] = [] items = { "foo": {"name": "Foo", "price": 50.2},
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 900 bytes - Viewed (0) -
cmd/site-replication-metrics_gen.go
return } } } return } // EncodeMsg implements msgp.Encodable func (z *RTimedMetrics) EncodeMsg(en *msgp.Writer) (err error) { // map header, size 4 // write "LastHour" err = en.Append(0x84, 0xa8, 0x4c, 0x61, 0x73, 0x74, 0x48, 0x6f, 0x75, 0x72) if err != nil { return } err = z.LastHour.EncodeMsg(en) if err != nil { err = msgp.WrapError(err, "LastHour") returnRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 40.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcMessageTest.java
} } @Nested @DisplayName("Message Encoding Tests") class MessageEncodingTests { @Test @DisplayName("encode should handle REQUEST ptype correctly") void testEncodeRequestPtype() throws NdrException { message.ptype = DcerpcConstants.RPC_PT_REQUEST; // 0 message.call_id = 1;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.3K bytes - Viewed (0) -
docs/debugging/xl-meta/main.go
} else { s += ", \"bitrot_valid\": false" } if value { if utf8.Valid(data) { // Encode as JSON string. b, err := json.Marshal(string(data)) if err == nil { s += `, "data_string": ` + string(b) } } // Base64 encode. s += `, "data_base64": "` + base64.StdEncoding.EncodeToString(data) + `"` } s += "}" }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 40.4K bytes - Viewed (0)