Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 1,386 for Byte (0.01 sec)

  1. src/bytes/reader_test.go

    	r := NewReader([]byte(data))
    	if got, want := r.Len(), 11; got != want {
    		t.Errorf("r.Len(): got %d, want %d", got, want)
    	}
    	if n, err := r.Read(make([]byte, 10)); err != nil || n != 10 {
    		t.Errorf("Read failed: read %d %v", n, err)
    	}
    	if got, want := r.Len(), 1; got != want {
    		t.Errorf("r.Len(): got %d, want %d", got, want)
    	}
    	if n, err := r.Read(make([]byte, 1)); err != nil || n != 1 {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

        void read_oneByteVariants() throws Exception {
            SmbRandomAccessFile raf = spy(newInstance("r", false, false, false));
            // For each 1-byte read, fill provided buffer with 0xFF/0x01
            doAnswer(inv -> {
                byte[] b = inv.getArgument(0);
                int off = inv.getArgument(1);
                b[off] = (byte) 0xFF;
                return 1;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

            // Test with minimum size buffer
            byte[] smallBuffer = new byte[2];
            assertEquals(2, trans2GetDfsReferral.writeSetupWireFormat(smallBuffer, 0));
    
            // Test with exact size buffer
            byte[] exactBuffer = new byte[2];
            assertEquals(2, trans2GetDfsReferral.writeSetupWireFormat(exactBuffer, 0));
    
            // Test read methods with empty buffer
            byte[] emptyBuffer = new byte[0];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndX.java

                batchLimits[2] = Byte.parseByte(s);
            }
            if ((s = Config.getProperty("jcifs.smb1.smb.client.TreeConnectAndX.Delete")) != null) {
                batchLimits[3] = Byte.parseByte(s);
            }
            if ((s = Config.getProperty("jcifs.smb1.smb.client.TreeConnectAndX.DeleteDirectory")) != null) {
                batchLimits[4] = Byte.parseByte(s);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/ntlmssp/av/AvFlags.java

         * Gets the flags as an integer value
         * @return flags
         */
        public int getFlags() {
            return SMBUtil.readInt4(this.getRaw(), 0);
        }
    
        private static byte[] encode(final int flags) {
            final byte[] raw = new byte[4];
            SMBUtil.writeInt4(flags, raw, 0);
            return raw;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponse.java

            super(config);
        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeParametersWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeDataWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            trans2QueryPathInfo = new Trans2QueryPathInformation(config, TEST_FILENAME, TEST_INFO_LEVEL);
    
            // Test complete wire format writing
            byte[] setupBuffer = new byte[256];
            byte[] paramBuffer = new byte[512];
            byte[] dataBuffer = new byte[256];
    
            int setupWritten = trans2QueryPathInfo.writeSetupWireFormat(setupBuffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/spnego/NegTokenInit.java

         * @param mechanismListMIC the MIC over the mechanism list
         */
        public NegTokenInit(final ASN1ObjectIdentifier[] mechanisms, final int contextFlags, final byte[] mechanismToken,
                final byte[] mechanismListMIC) {
            setMechanisms(mechanisms);
            setContextFlags(contextFlags);
            setMechanismToken(mechanismToken);
            setMechanismListMIC(mechanismListMIC);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

            bufferIndex += 16;
    
            // Write version major (1 byte)
            buffer[bufferIndex++] = (byte) versionMajor;
    
            // Write version minor (1 byte)
            buffer[bufferIndex++] = (byte) versionMinor;
    
            // Write type (4 bytes)
            SMBUtil.writeInt4(serverType, buffer, bufferIndex);
            bufferIndex += 4;
    
            // Write comment offset (4 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequest.java

        private byte fileInformationClass = FILE_BOTH_DIRECTORY_INFO;
        private byte queryFlags;
        private int fileIndex;
        private byte[] fileId;
        private final int outputBufferLength;
        private String fileName;
    
        /**
         * Constructs an SMB2 query directory request with the given configuration.
         *
         * @param config the configuration for this request
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
Back to top