Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for inBytes (0.1 sec)

  1. src/main/java/jcifs/smb1/util/DES.java

        public static void squashBytesToInts( byte[] inBytes, int inOff, int[] outInts,
                                               int outOff, int intLen ) {
    
            for ( int i = 0; i < intLen; ++i )
                outInts[outOff + i] =
                    ( ( inBytes[inOff + i * 4    ] & 0xff ) << 24 ) |
                    ( ( inBytes[inOff + i * 4 + 1] & 0xff ) << 16 ) |
                    ( ( inBytes[inOff + i * 4 + 2] & 0xff ) <<  8 ) |
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 21.4K bytes
    - Viewed (0)
  2. internal/grid/connection.go

    	incomingBytes func(n int64) // Record incoming bytes.
    	outgoingBytes func(n int64) // Record outgoing bytes.
    	trace         *tracer       // tracer for this connection.
    	baseFlags     Flags
    	outBytes      atomic.Int64
    	inBytes       atomic.Int64
    	inMessages    atomic.Int64
    	outMessages   atomic.Int64
    	reconnects    atomic.Int64
    	lastConnect   atomic.Pointer[time.Time]
    	lastPingDur   atomic.Int64
    
    	// For testing only
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

                    dstIndex += 4;
    
                    SMBUtil.writeInt2(dstIndex - structStart, dst, cnOffsetOffset);
                    System.arraycopy(cnBytes, 0, dst, dstIndex, cnBytes.length);
                    dstIndex += cnBytes.length;
                    dstIndex += pad8(dstIndex);
    
                    SMBUtil.writeInt2(dstIndex - structStart, dst, dataOffsetOffset);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jun 01 09:52:11 UTC 2019
    - 14.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequest.java

            }
            else {
                byte[] fnBytes = this.fileName.getBytes(StandardCharsets.UTF_16LE);
                SMBUtil.writeInt2(dstIndex - getHeaderStart(), dst, fnOffsetOffset);
                SMBUtil.writeInt2(fnBytes.length, dst, fnLengthOffset);
                System.arraycopy(fnBytes, 0, dst, dstIndex, fnBytes.length);
                dstIndex += fnBytes.length;
            }
            return dstIndex - start;
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 10:41:31 UTC 2021
    - 6K bytes
    - Viewed (0)
  5. src/bytes/buffer_test.go

    	var buf Buffer
    	n := 0
    	for r := rune(0); r < NRune; r++ {
    		size := utf8.EncodeRune(b[n:], r)
    		nbytes, err := buf.WriteRune(r)
    		if err != nil {
    			t.Fatalf("WriteRune(%U) error: %s", r, err)
    		}
    		if nbytes != size {
    			t.Fatalf("WriteRune(%U) expected %d, got %d", r, size, nbytes)
    		}
    		n += size
    	}
    	b = b[0:n]
    
    	// Check the resulting bytes
    	if !Equal(buf.Bytes(), b) {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/hash/Murmur3_32HashFunction.java

        Murmur3_32Hasher(int seed) {
          this.h1 = seed;
          this.length = 0;
          isDone = false;
        }
    
        private void update(int nBytes, long update) {
          // 1 <= nBytes <= 4
          buffer |= (update & 0xFFFFFFFFL) << shift;
          shift += nBytes * 8;
          length += nBytes;
    
          if (shift >= 32) {
            h1 = mixH1(h1, mixK1((int) buffer));
            buffer >>>= 32;
            shift -= 32;
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. src/bytes/buffer.go

    	b.lastRead = opInvalid
    	if nBytes := b.Len(); nBytes > 0 {
    		m, e := w.Write(b.buf[b.off:])
    		if m > nBytes {
    			panic("bytes.Buffer.WriteTo: invalid Write count")
    		}
    		b.off += m
    		n = int64(m)
    		if e != nil {
    			return n, e
    		}
    		// all bytes should have been written, by definition of
    		// Write method in io.Writer
    		if m != nBytes {
    			return n, io.ErrShortWrite
    		}
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Oct 29 16:47:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  8. cmd/server-rlimit.go

    		return err
    	}
    
    	if vssLimit > 0 && vssLimit < humanize.GiByte {
    		logger.Info("WARNING: maximum virtual memory limit (%s) is too small for 'go runtime', please consider setting `ulimit -v` to unlimited",
    			humanize.IBytes(vssLimit))
    	}
    
    	if ctx.MemLimit > 0 {
    		debug.SetMemoryLimit(int64(ctx.MemLimit))
    	}
    
    	// Do not use RLIMIT_AS as that is not useful and at times on systems < 4Gi
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 02 15:09:36 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. src/bufio/bufio_test.go

    	buf := make([]byte, utf8.UTFMax)
    	for r := rune(0); r < NRune; r++ {
    		size := utf8.EncodeRune(buf, r)
    		nbytes, err := w.WriteRune(r)
    		if err != nil {
    			t.Fatalf("WriteRune(0x%x) error: %s", r, err)
    		}
    		if nbytes != size {
    			t.Fatalf("WriteRune(0x%x) expected %d, got %d", r, size, nbytes)
    		}
    	}
    	w.Flush()
    
    	r := NewReader(byteBuf)
    	// Read them back with ReadRune
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  10. cmd/common-main.go

    		if err != nil {
    			return err
    		}
    		if mlimit > memAvailable {
    			logger.Info("WARNING: maximum memory available (%s) smaller than specified --memlimit=%s, ignoring --memlimit value",
    				humanize.IBytes(memAvailable), memlimit)
    		}
    		ctxt.MemLimit = mlimit
    	} else {
    		ctxt.MemLimit = memAvailable
    	}
    
    	if memAvailable < ctxt.MemLimit {
    		ctxt.MemLimit = memAvailable
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
Back to top