Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 355 for mbuf (0.01 sec)

  1. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

            Trans2GetDfsReferral cmd = new Trans2GetDfsReferral("foo");
            byte[] buf = new byte[2];
            int r = cmd.writeSetupWireFormat(buf, 0);
            assertEquals(2, r);
            byte subCmd = (byte) getPrivateField(cmd, "subCommand");
            assertEquals(subCmd, buf[0]);
            assertEquals((byte) 0x00, buf[1]);
        }
    
        @Test
        @DisplayName("writeParametersWireFormat writes referral level and path")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. cmd/storage-rest-client.go

    }
    
    // AppendFile - append to a file.
    func (client *storageRESTClient) AppendFile(ctx context.Context, volume string, path string, buf []byte) error {
    	values := make(url.Values)
    	values.Set(storageRESTVolume, volume)
    	values.Set(storageRESTFilePath, path)
    	reader := bytes.NewReader(buf)
    	respBody, err := client.call(ctx, storageRESTMethodAppendFile, values, reader, -1)
    	defer xhttp.DrainBody(respBody)
    	return err
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 08 02:38:41 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java

        OLD {
          @Override
          long copy(Readable from, Appendable to) throws IOException {
            CharBuffer buf = CharStreams.createBuffer();
            long total = 0;
            while (from.read(buf) != -1) {
              ((Buffer) buf).flip();
              to.append(buf);
              total += buf.remaining();
              ((Buffer) buf).clear();
            }
            return total;
          }
        },
        NEW {
          @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/endtoend_test.go

    		// Comma to separate argument gets a space; comma within does not.
    		var buf []byte
    		nest := 0
    		for i := 0; i < len(printed); i++ {
    			c := printed[i]
    			switch c {
    			case '{', '[':
    				nest++
    			case '}', ']':
    				nest--
    			case ',':
    				buf = append(buf, ',')
    				if nest == 0 {
    					buf = append(buf, ' ')
    				}
    				for i+1 < len(printed) && (printed[i+1] == ' ' || printed[i+1] == '\t') {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Mar 26 01:02:50 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/BufferCache.java

         * Returns a buffer to the cache for reuse.
         *
         * Performance: O(1) operation with size limit check
         *
         * @param buf the buffer to return to the cache
         */
        static public void releaseBuffer(final byte[] buf) {
            // Validate buffer before returning to cache
            if (buf == null || buf.length != SmbComTransaction.TRANSACTION_BUF_SIZE) {
                return; // Silently ignore invalid buffers
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. src/cmd/asm/main.go

    	defer ctxt.Bso.Flush()
    
    	architecture.Init(ctxt)
    
    	// Create object file, write header.
    	buf, err := bio.Create(*flags.OutputFile)
    	if err != nil {
    		log.Fatal(err)
    	}
    	defer buf.Close()
    
    	if !*flags.SymABIs {
    		buf.WriteString(objabi.HeaderString())
    		fmt.Fprintf(buf, "!\n")
    	}
    
    	// Set macros for GOEXPERIMENTs so we can easily switch
    	// runtime assembly code based on them.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Sun Apr 13 15:09:12 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/witness/WitnessRpcMessage.java

         *
         * @param buf the NDR buffer to decode from
         * @throws NdrException if decoding fails
         */
        protected abstract void decodeWitnessParameters(NdrBuffer buf) throws NdrException;
    
        @Override
        public void encode_in(NdrBuffer buf) throws NdrException {
            encodeWitnessParameters(buf);
        }
    
        @Override
        public void decode_out(NdrBuffer buf) throws NdrException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/lang/MethodUtil.java

            final StringBuilder buf = new StringBuilder(100);
            buf.append(methodName).append("(");
            if (argTypes != null && argTypes.length > 0) {
                for (final Class<?> argType : argTypes) {
                    buf.append(argType.getName()).append(", ");
                }
                buf.setLength(buf.length() - 2);
            }
            buf.append(")");
            return new String(buf);
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  9. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/util/ProfileUtil.java

            }
    
            if (!list.isEmpty()) {
                final StringBuilder buf = new StringBuilder();
                for (final String value : list) {
                    if (buf.length() > 0) {
                        buf.append(',');
                    }
                    buf.append(value);
                }
                System.setProperty(SPRING_PROFILES_ACTIVE, buf.toString());
            }
        }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  10. src/bufio/export_test.go

    )
    
    var IsSpace = isSpace
    
    const DefaultBufSize = defaultBufSize
    
    func (s *Scanner) MaxTokenSize(n int) {
    	if n < utf8.UTFMax || n > 1e9 {
    		panic("bad max token size")
    	}
    	if n < len(s.buf) {
    		s.buf = make([]byte, n)
    	}
    	s.maxTokenSize = n
    }
    
    // ErrOrEOF is like Err, but returns EOF. Used to test a corner case.
    func (s *Scanner) ErrOrEOF() error {
    	return s.err
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Nov 02 17:17:44 UTC 2017
    - 597 bytes
    - Viewed (0)
Back to top