- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 1,693 for byte2 (0.01 sec)
-
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-endian
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
cmd/erasure-server-pool-decom_gen_test.go
import ( "bytes" "testing" "github.com/tinylib/msgp/msgp" ) func TestMarshalUnmarshalPoolDecommissionInfo(t *testing.T) { v := PoolDecommissionInfo{} bts, err := v.MarshalMsg(nil) if err != nil { t.Fatal(err) } left, err := v.UnmarshalMsg(bts) if err != nil { t.Fatal(err) } if len(left) > 0 { t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Jan 12 02:48:43 UTC 2022 - 11K bytes - Viewed (0) -
cmd/batch-job-common-types_gen_test.go
import ( "bytes" "testing" "github.com/tinylib/msgp/msgp" ) func TestMarshalUnmarshalBatchJobKV(t *testing.T) { v := BatchJobKV{} bts, err := v.MarshalMsg(nil) if err != nil { t.Fatal(err) } left, err := v.UnmarshalMsg(bts) if err != nil { t.Fatal(err) } if len(left) > 0 { t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sat Dec 02 10:51:33 UTC 2023 - 11.3K bytes - Viewed (0) -
cmd/batch-rotate_gen_test.go
import ( "bytes" "testing" "github.com/tinylib/msgp/msgp" ) func TestMarshalUnmarshalBatchJobKeyRotateEncryption(t *testing.T) { v := BatchJobKeyRotateEncryption{} bts, err := v.MarshalMsg(nil) if err != nil { t.Fatal(err) } left, err := v.UnmarshalMsg(bts) if err != nil { t.Fatal(err) } if len(left) > 0 {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue Aug 29 18:27:23 UTC 2023 - 11.8K bytes - Viewed (0) -
cmd/xl-storage-format-v2_gen_test.go
import ( "bytes" "testing" "github.com/tinylib/msgp/msgp" ) func TestMarshalUnmarshalxlMetaDataDirDecoder(t *testing.T) { v := xlMetaDataDirDecoder{} bts, err := v.MarshalMsg(nil) if err != nil { t.Fatal(err) } left, err := v.UnmarshalMsg(bts) if err != nil { t.Fatal(err) } if len(left) > 0 { t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Nov 18 20:15:22 UTC 2021 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java
byte[] dst = new byte[15]; // Increased buffer size to accommodate offset + 8 bytes int offset = 3; // start in the middle to ensure no tail is overwritten int bytesWritten = cmd.writeParametersWireFormat(dst, offset); assertEquals(8, bytesWritten, "writeParametersWireFormat should write 8 bytes"); byte[] expected = expectedParameters(fid, securityInformation);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/Smb2RdmaTransform.java
* Get size of this structure * * @return size in bytes (16) */ public static int size() { return 16; // 8 + 4 + 4 } /** * Encode this structure to byte array * * @param dst destination buffer * @param dstIndex starting index * @return number of bytes written */ public int encode(byte[] dst, int dstIndex) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
} @Test @DisplayName("Test readParametersWireFormat ignores middle 2 bytes") void testReadParametersWireFormatIgnoresMiddleBytes() { // Arrange byte[] buffer = new byte[10]; SMBUtil.writeInt2(200, buffer, 0); // These bytes should be ignored buffer[2] = (byte) 0xFF; buffer[3] = (byte) 0xFF; SMBUtil.writeInt2(TransPeekNamedPipeResponse.STATUS_LISTENING, buffer, 4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeTest.java
byte[] dst = new byte[10]; // writeSetupWireFormat writes 4 bytes: // - subCommand byte // - 3 zero bytes (padding and no FID) int written = pipe.writeSetupWireFormat(dst, 0); assertEquals(4, written, "Setup should write 4 bytes"); assertEquals(SmbComTransaction.TRANS_WAIT_NAMED_PIPE, dst[0], "First byte should be subCommand");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComWriteAndXResponse.java
} /** * Gets the number of bytes written. * * @return the count of bytes written */ public final long getCount() { return this.count; } @Override protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) { return 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0)