Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for srcbuf (0.3 sec)

  1. src/text/scanner/scanner.go

    	// Typically, token text is stored completely in srcBuf, but in general
    	// the token text's head may be buffered in tokBuf while the token text's
    	// tail is stored in srcBuf.
    	tokBuf bytes.Buffer // token text head that is not in srcBuf anymore
    	tokPos int          // token text tail position (srcBuf index); valid if >= 0
    	tokEnd int          // token text tail end (srcBuf index)
    
    	// One character look-ahead
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. src/crypto/aes/gcm_s390x.go

    	// buffer for counter values.
    	var ctrbuf, srcbuf [2048]byte
    	for len(src) >= 16 {
    		siz := len(src)
    		if len(src) > len(ctrbuf) {
    			siz = len(ctrbuf)
    		}
    		siz &^= 0xf // align siz to 16-bytes
    		copy(srcbuf[:], src[:siz])
    		cryptBlocksGCM(g.block.function, g.block.key, dst[:siz], srcbuf[:siz], ctrbuf[:], cnt)
    		src = src[siz:]
    		dst = dst[siz:]
    	}
    	if len(src) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. cmd/object-api-utils_test.go

    			}
    
    			var decBuf bytes.Buffer
    			decRdr := s2.NewReader(&rdrBuf)
    			_, err = io.Copy(&decBuf, decRdr)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			if !bytes.Equal(tt.data, decBuf.Bytes()) {
    				t.Errorf("roundtrip failed\n\t%q\n\t%q", tt.data, decBuf.Bytes())
    			}
    		})
    	}
    }
    
    func Test_pathNeedsClean(t *testing.T) {
    	type pathTest struct {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  4. src/runtime/tracestack.go

    	} else if len(pcBuf) > 0 && pcBuf[0] == logicalStackSentinel {
    		// pcBuf contains logical rather than inlined frames, skip has already been
    		// applied, just return it without the sentinel value in pcBuf[0].
    		return copy(dst, pcBuf[1:])
    	}
    
    	var (
    		n          int
    		lastFuncID = abi.FuncIDNormal
    		skip       = pcBuf[0]
    		// skipOrAdd skips or appends retPC to newPCBuf and returns true if more
    		// pcs can be added.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. src/syscall/exec_plan9.go

    childerror:
    	// send error string on pipe
    	RawSyscall(SYS_ERRSTR, uintptr(unsafe.Pointer(&errbuf[0])), uintptr(len(errbuf)), 0)
    childerror1:
    	errbuf[len(errbuf)-1] = 0
    	i = 0
    	for i < len(errbuf) && errbuf[i] != 0 {
    		i++
    	}
    
    	RawSyscall6(SYS_PWRITE, uintptr(pipe), uintptr(unsafe.Pointer(&errbuf[0])), uintptr(i),
    		^uintptr(0), ^uintptr(0), 0)
    
    	for {
    		RawSyscall(SYS_EXITS, 0, 0, 0)
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. src/cmd/link/internal/loadmacho/ldmacho.go

    	p := symbuf
    	for i := uint32(0); i < symtab.nsym; i++ {
    		s := &sym[i]
    		v := m.e.Uint32(p)
    		if v >= symtab.strsize {
    			return -1
    		}
    		s.name = cstring(strbuf[v:])
    		s.type_ = p[4]
    		s.sectnum = p[5]
    		s.desc = m.e.Uint16(p[6:])
    		if m.is64 {
    			s.value = m.e.Uint64(p[8:])
    		} else {
    			s.value = uint64(m.e.Uint32(p[8:]))
    		}
    		p = p[symsize:]
    	}
    
    	symtab.str = strbuf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 12 18:45:57 UTC 2022
    - 19.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/python/converter_python_api.cc

        for (int i = 0; i < PyList_GET_SIZE(py_denylist); ++i) {
          PyObject* value = PyList_GetItem(py_denylist, i);
          char* str_buf;
          Py_ssize_t length;
          if (ConvertFromPyString(value, &str_buf, &length) == -1) {
            return -1;
          }
          string_set->emplace(str_buf, length);
        }
      }
      if (PySet_Check(py_denylist)) {
        auto* tmp = PySet_New(py_denylist);
        while (PySet_GET_SIZE(tmp)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. src/cmd/internal/dwarf/dwarf.go

    	b := sevenBitU(v)
    	if b == nil {
    		var encbuf [20]byte
    		b = AppendUleb128(encbuf[:0], uint64(v))
    	}
    	ctxt.AddBytes(s, b)
    }
    
    // Sleb128put appends v to s using DWARF's signed LEB128 encoding.
    func Sleb128put(ctxt Context, s Sym, v int64) {
    	b := sevenBitS(v)
    	if b == nil {
    		var encbuf [20]byte
    		b = AppendSleb128(encbuf[:0], v)
    	}
    	ctxt.AddBytes(s, b)
    }
    
    /*
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 43K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/endtoend_test.go

    	ctxt.IsAsm = true
    	defer ctxt.Bso.Flush()
    	failed := false
    	var errBuf bytes.Buffer
    	parser.errorWriter = &errBuf
    	ctxt.DiagFunc = func(format string, args ...interface{}) {
    		failed = true
    		s := fmt.Sprintf(format, args...)
    		if !strings.HasSuffix(s, "\n") {
    			s += "\n"
    		}
    		errBuf.WriteString(s)
    	}
    	for _, flag := range flags {
    		switch flag {
    		case "dynlink":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 18:42:59 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/curl/CurlRequest.java

                    }
                    final StringBuilder urlBuf = new StringBuilder(100);
                    for (final String param : paramList) {
                        urlBuf.append(sp).append(param);
                        if (sp == '?') {
                            sp = '&';
                        }
                    }
                    url = url + urlBuf.toString();
                }
    
    Registered: Wed Jun 12 08:29:43 UTC 2024
    - Last Modified: Sun Feb 12 12:21:25 UTC 2023
    - 12.3K bytes
    - Viewed (0)
Back to top