- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 566 for decodes (0.04 sec)
-
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java
// Body starts at bufferIndex + 64 // Structure size = 2 SMBUtil.writeInt2(2, buffer, bufferIndex + 64); // Decode the response int result = response.decode(buffer, bufferIndex); assertEquals(66, result); assertEquals(0, response.getStatus()); // Should be STATUS_SUCCESS } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java
// otherwise try to presize a StringBuilder // it is kind of lame that we need to construct a decoder to access this value. // if this is a concern we could add special cases for some known charsets (like utf8) // or we could avoid inputstreamreader and use the decoder api directly // TODO(lukes): in a real implementation we would need to handle overflow conditions
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java
* @throws NdrException if encoding fails */ public abstract void encode_in(NdrBuffer buf) throws NdrException; /** * Decode the output parameters from this DCERPC message. * @param buf the buffer to decode from * @throws NdrException if decoding fails */ public abstract void decode_out(NdrBuffer buf) throws NdrException;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FileBasicInfo.java
} @Override public long getSize() { return 0L; } /** * {@inheritDoc} * * @see jcifs.Decodable#decode(byte[], int, int) */ @Override public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException { final int start = bufferIndex; this.createTime = SMBUtil.readTime(buffer, bufferIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.7K bytes - Viewed (0) -
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 method
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K bytes - Viewed (0) -
src/test/java/jcifs/util/StringsTest.java
@DisplayName("fromUNIBytes should decode UTF-16LE bytes to string") void testFromUNIBytes() { // Given byte[] bytes = TEST_STRING.getBytes(StandardCharsets.UTF_16LE); // When String result = Strings.fromUNIBytes(bytes, 0, bytes.length); // Then assertEquals(TEST_STRING, result, "Should decode back to original string"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponse.java
* @return the resumeKey */ public byte[] getResumeKey() { return this.resumeKey; } /** * {@inheritDoc} * * @see jcifs.Decodable#decode(byte[], int, int) */ @Override public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException { final int start = bufferIndex; if (len < 24) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
cmd/erasure-server-pool-rebalance_gen_test.go
var buf bytes.Buffer msgp.Encode(&buf, &v) m := v.Msgsize() if buf.Len() > m { t.Log("WARNING: TestEncodeDecoderebalanceInfo Msgsize() is inaccurate") } vn := rebalanceInfo{} 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) } }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue Oct 25 19:36:57 UTC 2022 - 11K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/SmbInfoAllocation.java
public long getFree() { return this.free * this.sectPerAlloc * this.bytesPerSect; } /** * {@inheritDoc} * * @see jcifs.Decodable#decode(byte[], int, int) */ @Override public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException { final int start = bufferIndex; bufferIndex += 4; // skip idFileSystem
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.9K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java
for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += UnsignedLongs.decode(decimalStrings[j]); } return tmp; } @Benchmark long parseDecode16(int reps) { long tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += UnsignedLongs.decode(prefixedHexStrings[j]); } return tmp; } @Benchmark
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 4.4K bytes - Viewed (0)