- Sort Score
- Num 10 results
- Language All
Results 171 - 180 of 746 for decodes (0.05 seconds)
-
src/test/java/jcifs/internal/dfs/ReferralTest.java
bb.putShort((short) 0); // Decode with exact length int decodedSize = referral.decode(testBuffer, 0, 24); assertEquals(24, decodedSize); // Decode with excess length Referral referral2 = new Referral(); decodedSize = referral2.decode(testBuffer, 0, 512); assertEquals(24, decodedSize); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 22K bytes - Click Count (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt
"00010000003b00049df00112" ).decodeHex(), ) assertThat(decoded).containsExactly(InetAddress.getByName("157.240.1.18")) } @Test fun testGoogleDotComDecodingFromGoogleIPv6() { val decoded = decodeAnswers( hostname = "test.com", byteString = (
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu May 29 20:09:10 GMT 2025 - 3.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/srvsvc.java
if (netname != null) { _dst = _dst.deferred; _dst.enc_ndr_string(netname); } } @Override public void decode(NdrBuffer _src) throws NdrException { _src.align(4); final int _netnamep = _src.dec_ndr_long(); if (_netnamep != 0) { _src = _src.deferred;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 26.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
int decodedSize = context.decode(buffer, 0, buffer.length); // Assert assertEquals(12, decodedSize); assertArrayEquals(new int[] { 1, 2 }, context.getHashAlgos()); assertArrayEquals(new byte[] { 0x0A, 0x0B, 0x0C, 0x0D }, context.getSalt()); } @Test @DisplayName("Should handle empty arrays in decode")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 19.4K bytes - Click Count (0) -
tests/test_swagger_ui_escape.py
) body = html.body.decode() assert "<img src=x onerror=alert(1)>" not in body assert "\\u003cimg" in body def test_normal_init_oauth_still_works(): html = get_swagger_ui_html( openapi_url="/openapi.json", title="Test", init_oauth={"clientId": "my-client", "appName": "My App"}, ) body = html.body.decode() assert '"clientId": "my-client"' in bodyCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 24 09:28:10 GMT 2026 - 1.1K bytes - Click Count (0) -
tests/test_local_docs.py
redoc_favicon_url=redoc_favicon_url, ) body_content = html.body.decode() assert redoc_js_url in body_content assert redoc_favicon_url in body_content def test_google_fonts_in_generated_redoc(): body_with_google_fonts = get_redoc_html( openapi_url="/docs", title="title" ).body.decode() assert "fonts.googleapis.com" in body_with_google_fontsCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Dec 20 18:50:00 GMT 2020 - 2.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java
m.ptype = 0; // Request type NdrBuffer buf = new NdrBuffer(new byte[1024], 0); m.encode(buf); buf.setIndex(0); // Decode will throw exception as ptype 0 is not a valid response type assertThrows(NdrException.class, () -> m.decode(buf)); } @Test void testRoundTripEncodeDecodeForResponseType() throws Exception { // Create a properly formatted response messageCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 7K bytes - Click Count (0) -
okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt
|-----END PRIVATE KEY----- | """.trimMargin() try { decode(certificatePem) fail<Any>() } catch (expected: IllegalArgumentException) { assertThat(expected.message).isEqualTo("string does not include a private key") } try { decode(pkcs8Pem) fail<Any>() } catch (expected: IllegalArgumentException) {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 22.6K bytes - Click Count (0) -
internal/s3select/json/reader.go
// Reader - JSON record reader for S3Select. type Reader struct { args *ReaderArgs decoder *jstream.Decoder valueCh chan *jstream.MetaValue readCloser io.ReadCloser } // Read - reads single record. func (r *Reader) Read(dst sql.Record) (sql.Record, error) { v, ok := <-r.valueCh if !ok { if err := r.decoder.Err(); err != nil { return nil, errJSONParsingError(err) } return nil, io.EOF }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 3.2K bytes - Click Count (0) -
cmd/erasure_test.go
t.Errorf("Test %d: test should pass but it failed: %v", i, err) } decoded := encoded if !test.shouldFail { if test.reconstructParity { for j := range decoded { if decoded[j] == nil { t.Errorf("Test %d: failed to reconstruct shard %d", i, j) } } } else { for j := range decoded[:test.dataBlocks] { if decoded[j] == nil { t.Errorf("Test %d: failed to reconstruct data shard %d", i, j)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 4.8K bytes - Click Count (0)