Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 1,074 for BytesX (1.13 sec)

  1. src/bytes/reader.go

    	prevRune int   // index of previous rune; or < 0
    }
    
    // Len returns the number of bytes of the unread portion of the
    // slice.
    func (r *Reader) Len() int {
    	if r.i >= int64(len(r.s)) {
    		return 0
    	}
    	return int(int64(len(r.s)) - r.i)
    }
    
    // Size returns the original length of the underlying byte slice.
    // Size is the number of bytes available for reading via [Reader.ReadAt].
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jul 16 18:17:37 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakNotification.java

            this.newLeaseState = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            // BreakReason (4 bytes)
            this.breakReason = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            // AccessMaskHint (4 bytes)
            this.accessMaskHint = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            // ShareAccessHint (4 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequest.java

            this.leaseFlags = leaseFlags;
        }
    
        @Override
        public int size() {
            // Context header: 16 bytes
            // Name: 4 bytes ("RqLs")
            // Padding: 4 bytes (to align data to 8-byte boundary)
            // Data: 32 bytes (lease V1 structure)
            return 16 + 4 + 4 + 32;
        }
    
        @Override
        public int encode(byte[] dst, int dstIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/BasePublicSuffixList.kt

      private val readCompleteLatch = CountDownLatch(1)
    
      // The lists are held as a large array of UTF-8 bytes. This is to avoid allocating lots of strings
      // that will likely never be used. Each rule is separated by '\n'. Please see the
      // PublicSuffixListGenerator class for how these lists are generated.
      // Guarded by this.
      override lateinit var bytes: ByteString
      override lateinit var exceptionBytes: ByteString
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

            // Create message with 5 bytes of data
            byte[] data = new byte[] { 10, 20, 30, 40, 50 };
            InputStream in = new ByteArrayInputStream(concat(messageHeader(5), data));
            SocketInputStream sis = new SocketInputStream(in);
    
            // Skip 3 bytes
            assertEquals(3, sis.skip(3));
    
            // Read remaining 2 bytes
            byte[] remaining = new byte[2];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/spnego/SpnegoToken.java

        }
    
        /**
         * Encodes this SPNEGO token to a byte array
         * @return the encoded token bytes
         */
        public abstract byte[] toByteArray();
    
        /**
         * Parses the provided token bytes to populate this SPNEGO token
         * @param token the token bytes to parse
         * @throws IOException if parsing fails
         */
        protected abstract void parse(byte[] token) throws IOException;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  7. cmd/background-newdisks-heal-ops_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalhealingTracker(t *testing.T) {
    	v := healingTracker{}
    	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: Fri Apr 23 18:58:53 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/SecureCredentialStorage.java

                    bytes[byteIndex++] = (byte) (0xE0 | (c >> 12));
                    bytes[byteIndex++] = (byte) (0x80 | ((c >> 6) & 0x3F));
                    bytes[byteIndex++] = (byte) (0x80 | (c & 0x3F));
                }
            }
    
            return Arrays.copyOf(bytes, byteIndex);
        }
    
        /**
         * Convert byte array to char array (UTF-8)
         */
        private char[] bytesToChars(byte[] bytes) {
            if (bytes == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

         */
        public void setLength(final int length) {
            deferred.length = length;
        }
    
        /**
         * Advances the buffer index by the specified number of bytes.
         *
         * @param n the number of bytes to advance
         */
        public void advance(final int n) {
            index += n;
            if (index - start > deferred.length) {
                deferred.length = index - start;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

            // Verify total data count (4 bytes at position 7)
            assertEquals(200, SMBUtil.readInt4(dst, 7));
    
            // Verify max parameter count (4 bytes at position 11)
            assertEquals(1024, SMBUtil.readInt4(dst, 11));
    
            // Verify max data count (4 bytes at position 15)
            assertEquals(2048, SMBUtil.readInt4(dst, 15));
    
            // Verify parameter count (4 bytes at position 19)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
Back to top