Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 406 for getByte (0.04 sec)

  1. src/main/java/jcifs/smb1/smb1/NetServerEnum2.java

            final int start = dstIndex;
            byte[] descr;
            final int which = subCommand == NET_SERVER_ENUM2 ? 0 : 1;
    
            try {
                descr = DESCR[which].getBytes("ASCII");
            } catch (final UnsupportedEncodingException uee) {
                return 0;
            }
    
            writeInt2(subCommand & 0xFF, dst, dstIndex);
            dstIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequest.java

            final int start = dstIndex;
            SMBUtil.writeInt2(9, dst, dstIndex);
            SMBUtil.writeInt2(this.treeFlags, dst, dstIndex + 2);
            dstIndex += 4;
    
            final byte[] data = this.path.getBytes(StandardCharsets.UTF_16LE);
            final int offsetOffset = dstIndex;
            SMBUtil.writeInt2(data.length, dst, dstIndex + 2);
            dstIndex += 4;
            SMBUtil.writeInt2(dstIndex - getHeaderStart(), dst, offsetOffset);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/net/SmbShareInfo.java

        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.FileEntry#getFileIndex()
         */
        @Override
        public int getFileIndex() {
            return 0;
        }
    
        @Override
        public int getType() {
            /*
             * 0x80000000 means hidden but SmbFile.isHidden() checks for $ at end
             */
            switch (this.type & 0xFFFF) {
            case 1:
                return SmbConstants.TYPE_PRINTER;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

          // [9-127) includes all ascii non-control characters
          sb.append((char) (random.nextInt(127 - 9) + 9));
        }
        String string = sb.toString();
        sb.setLength(0);
        data = ByteSource.wrap(string.getBytes(charset));
      }
    
      @Benchmark
      public int timeCopy(int reps) throws IOException {
        int r = 0;
        Charset localCharset = charset;
        ByteSource localData = data;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

        private SmbComNegotiateResponse mockNegotiate;
        @Mock
        private ServerMessageBlock mockAndX;
        @Mock
        private Configuration mockConfig;
    
        private static byte[] blobCred() {
            return "blobdata".getBytes(StandardCharsets.UTF_8);
        }
    
        @BeforeEach
        void setup() {
            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockNegotiate.getServerData()).thenReturn(new ServerDataStub());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/pac/kerberos/KerberosTokenTest.java

        }
    
        /**
         * Test constructor with a malformed token (not ASN.1).
         */
        @Test
        void testConstructorWithMalformedToken() {
            byte[] malformedToken = "This is not a valid token".getBytes();
            assertThrows(PACDecodingException.class, () -> new KerberosToken(malformedToken));
        }
    
        /**
         * Test constructor with a token that has an incorrect OID.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/FileEntry.java

        /**
         * Gets the file name.
         *
         * @return the file name
         */
        String getName();
    
        /**
         * Gets the file type.
         *
         * @return the file type
         */
        int getType();
    
        /**
         * Gets the file attributes.
         *
         * @return the file attributes
         */
        int getAttributes();
    
        /**
         * Gets the file creation time.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbComNegotiate.java

            return 0;
        }
    
        @Override
        int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            byte[] dialects;
            try {
                dialects = DIALECTS.getBytes("ASCII");
            } catch (final UnsupportedEncodingException uee) {
                return 0;
            }
            System.arraycopy(dialects, 0, dst, dstIndex, dialects.length);
            return dialects.length;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComDeleteDirectoryTest.java

            sdd.useUnicode = false;
            // format byte + path + null terminator
            byte[] expected = new byte[1 + dirName.length() + 1];
            expected[0] = 0x04; // buffer format
            System.arraycopy(dirName.getBytes(), 0, expected, 1, dirName.length());
            expected[dirName.length() + 1] = 0x00; // null terminator
    
            byte[] dst = new byte[100];
            int len = sdd.writeBytesWireFormat(dst, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        for (int i = 0; i < params.size(); i++) {
          List<Object> newArgs = new ArrayList<>(args);
          Object newArg = argGenerators.get(i).generateFresh(params.get(i).getType());
    
          if (newArg == null || Objects.equals(args.get(i), newArg)) {
            if (params.get(i).getType().getRawType().isEnum()) {
              continue; // Nothing better we can do if it's single-value enum
            }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top