Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 1,386 for Byte (0.02 sec)

  1. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        }
    
        @Override
        public void write(final int b) throws SmbException {
            this.tmp[0] = (byte) b;
            write(this.tmp, 0, 1);
        }
    
        @Override
        public void write(final byte b[]) throws SmbException {
            write(b, 0, b.length);
        }
    
        @Override
        public void write(final byte b[], int off, int len) throws SmbException {
            if (len <= 0) {
                return;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            byte[] buffer = new byte[1024];
    
            // Encode to set headerStart
            req.encode(buffer, 0);
    
            // Then
            byte[] pathBytes = path.getBytes(StandardCharsets.UTF_16LE);
    
            // Verify path is written correctly at body + 8
            byte[] actualPath = new byte[pathBytes.length];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/http/NtlmSsp.java

                    final Type3Message type3 = new Type3Message(src);
                    byte[] lmResponse = type3.getLMResponse();
                    if (lmResponse == null) {
                        lmResponse = new byte[0];
                    }
                    byte[] ntResponse = type3.getNTResponse();
                    if (ntResponse == null) {
                        ntResponse = new byte[0];
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                    byte[] dst = new byte[buffer.size()];
                    buffer.encode(dst, 0);
    
                    // Verify SMBUtil.writeInt2 was called for referral level (with long parameter)
                    mockedSMBUtil.verify(() -> SMBUtil.writeInt2(eq((long) maxReferralLevel), any(byte[].class), eq(0)));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/PacCredentialTypeTest.java

        /**
         * Tests the constructor with a valid byte array.
         */
        @Test
        void testConstructorWithValidData() {
            // A byte array with a length less than 32 should be considered valid.
            byte[] validData = new byte[31];
            assertDoesNotThrow(() -> new PacCredentialType(validData));
        }
    
        /**
         * Tests the constructor with a null byte array, which should throw an exception.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  6. src/archive/tar/format.go

    	*b = block{}
    }
    
    type headerV7 [blockSize]byte
    
    func (h *headerV7) name() []byte     { return h[000:][:100] }
    func (h *headerV7) mode() []byte     { return h[100:][:8] }
    func (h *headerV7) uid() []byte      { return h[108:][:8] }
    func (h *headerV7) gid() []byte      { return h[116:][:8] }
    func (h *headerV7) size() []byte     { return h[124:][:12] }
    func (h *headerV7) modTime() []byte  { return h[136:][:12] }
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

            assertEquals("guest", accountName);
            assertEquals("DOM", primaryDomain);
    
            byte[] lm = (byte[]) getField(obj, "lmHash");
            byte[] nt = (byte[]) getField(obj, "ntHash");
            assertArrayEquals(new byte[0], lm);
            assertArrayEquals(new byte[0], nt);
        }
    
        @Test
        void unsupportedCredentialType() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/UUIDTest.java

        private static final short TIME_HI_AND_VERSION = (short) 0x6677;
        private static final byte CLOCK_SEQ_HI_AND_RESERVED = (byte) 0x88;
        private static final byte CLOCK_SEQ_LOW = (byte) 0x99;
        private static final byte[] NODE = { (byte) 0xAA, (byte) 0xBB, (byte) 0xCC, (byte) 0xDD, (byte) 0xEE, (byte) 0xFF };
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java

      @Param({"10", "100", "10000"})
      int n;
    
      private final byte[][] encodingInputs = new byte[INPUTS_COUNT][];
      private final String[] decodingInputs = new String[INPUTS_COUNT];
    
      @BeforeExperiment
      public void setUp() {
        Random rng = new Random();
        for (int i = 0; i < encodingInputs.length; i++) {
          encodingInputs[i] = new byte[n];
          rng.nextBytes(encodingInputs[i]);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/com/SmbComFindClose2Test.java

            byte[] dst = new byte[2];
            int written = neg.writeParameterWordsWireFormat(dst, 0);
            assertEquals(2, written);
            assertArrayEquals(new byte[] { (byte) 0xFF, (byte) 0xFF }, dst, "Negative sid should wrap to 0xFFFF");
        }
    
        @Test
        void testWriteParameterWordsWithOffset() {
            byte[] dst = new byte[5];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
Back to top