Search Options

Results per page
Sort
Preferred Languages
Advance

Results 571 - 580 of 1,386 for Byte (0.05 sec)

  1. src/main/java/jcifs/internal/dtyp/SecurityDescriptor.java

        /**
         * Creates a security descriptor by decoding from a byte buffer.
         *
         * @param buffer the byte buffer containing the security descriptor data
         * @param bufferIndex the starting offset in the buffer
         * @param len the length of data to decode
         * @throws IOException if an I/O error occurs during decoding
         */
        public SecurityDescriptor(final byte[] buffer, final int bufferIndex, final int len) throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/FilesTest.java

        // Test
        assertThrows(FileNotFoundException.class, () -> Files.map(file));
      }
    
      public void testMap_readWrite() throws IOException {
        // Test data
        int size = 1024;
        byte[] expectedBytes = new byte[size];
        byte[] bytes = newPreFilledByteArray(1024);
    
        // Setup
        File file = createTempFile();
        Files.write(bytes, file);
    
        Random random = new Random();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/BinaryConversionUtil.java

    /**
     * Utility class for conversions related to byte arrays.
     *
     * @author higa
     */
    public abstract class BinaryConversionUtil {
    
        /**
         * Do not instantiate.
         */
        protected BinaryConversionUtil() {
        }
    
        /**
         * Converts to a {@literal byte} array.
         *
         * @param o
         *            The object to convert
         * @return The {@literal byte} array
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/io/Smb2WriteRequest.java

         */
        public Smb2WriteRequest(final Configuration config, final byte[] fileId) {
            super(config, SMB2_WRITE);
            this.fileId = fileId;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.RequestWithFileId#setFileId(byte[])
         */
        @Override
        public void setFileId(final byte[] fileId) {
            this.fileId = fileId;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComRename.java

            if (useUnicode) {
                dst[dstIndex++] = (byte) '\0';
            }
            dstIndex += writeString(newFileName, dst, dstIndex);
    
            return dstIndex - start;
        }
    
        @Override
        int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        @Override
        int readBytesWireFormat(final byte[] buffer, final int bufferIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SpnegoContextTest.java

            when(this.mechContext.getFlags()).thenReturn(0x1234);
            when(this.mechContext.initSecContext(any(byte[].class), eq(0), eq(0))).thenReturn(new byte[] { 0x01, 0x02 });
    
            // Act: len==0 triggers initial token construction
            byte[] out = ctx.initSecContext(null, 0, 0);
    
            // Assert: returns a SPNEGO token (opaque here but non-null/non-empty)
            assertNotNull(out);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

         */
        public NdrBuffer deferred;
    
        /**
         * Constructs an NdrBuffer with the specified byte array and starting position.
         *
         * @param buf the byte array to use as the buffer
         * @param start the starting position in the buffer
         */
        public NdrBuffer(final byte[] buf, final int start) {
            this.buf = buf;
            this.start = this.index = start;
            this.length = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

            }
    
            @Override
            public byte[] getSessionKey() throws CIFSException {
                return sessionKey;
            }
    
            @Override
            protected void doSendFragment(byte[] buf, int off, int length) throws IOException {
                // Mock implementation for testing
            }
    
            @Override
            protected int doReceiveFragment(byte[] buf) throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Shorts.java

       */
      @GwtIncompatible // doesn't work
      public static byte[] toByteArray(short value) {
        return new byte[] {(byte) (value >> 8), (byte) value};
      }
    
      /**
       * Returns the {@code short} value whose big-endian representation is stored in the first 2 bytes
       * of {@code bytes}; equivalent to {@code ByteBuffer.wrap(bytes).getShort()}. For example, the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/Shorts.java

       */
      @GwtIncompatible // doesn't work
      public static byte[] toByteArray(short value) {
        return new byte[] {(byte) (value >> 8), (byte) value};
      }
    
      /**
       * Returns the {@code short} value whose big-endian representation is stored in the first 2 bytes
       * of {@code bytes}; equivalent to {@code ByteBuffer.wrap(bytes).getShort()}. For example, the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
Back to top