Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 138 for chars (0.17 sec)

  1. src/cmd/cgo/internal/testsanitizers/testdata/libfuzzer2.c

    #include <stddef.h>
    
    #include "libfuzzer2.h"
    
    int LLVMFuzzerTestOneInput(char *data, size_t size) {
     	if (size > 0 && data[0] == 'H')
    		if (size > 1 && data[1] == 'I')
    			if (size > 2 && data[2] == '!')
    				FuzzMe(data, size);
    	return 0;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 240 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/testdata/map2.go

    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file is like map.go, but instead of importing chans, it contains
    // the necessary functionality at the end of the file.
    
    // Package orderedmap provides an ordered map, implemented as a binary tree.
    package orderedmap
    
    // Map is an ordered map.
    type Map[K, V any] struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 12:49:49 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/map1.go

    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file is like map.go2, but instead if importing chans, it contains
    // the necessary functionality at the end of the file.
    
    // Package orderedmap provides an ordered map, implemented as a binary tree.
    package orderedmap
    
    // Map is an ordered map.
    type Map[K, V any] struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/mod/module/module.go

    	}
    	if path[0] == '-' {
    		return fmt.Errorf("leading dash in first path element")
    	}
    	for _, r := range path[:i] {
    		if !firstPathOK(r) {
    			return fmt.Errorf("invalid char %q in first path element", r)
    		}
    	}
    	if _, _, ok := SplitPathVersion(path); !ok {
    		return fmt.Errorf("invalid version")
    	}
    	return nil
    }
    
    // CheckImportPath checks that an import path is valid.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  5. src/encoding/xml/read_test.go

    	for {
    		t, err := d.Token()
    		if err == io.EOF { // found end of element
    			break
    		}
    		if err != nil {
    			return err
    		}
    		if char, ok := t.(CharData); ok {
    			m.body += string(char)
    		}
    	}
    	return nil
    }
    
    var _ Unmarshaler = (*MyCharData)(nil)
    
    func (m *MyCharData) UnmarshalXMLAttr(attr Attr) error {
    	panic("must not call")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue5548_c.c

    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include "_cgo_export.h"
    
    static void clobber_stack() {
    	volatile char a[1024];
    	int i;
    	for(i = 0; i < sizeof a; i++)
    		a[i] = 0xff;
    }
    
    static int call_go() {
    	GoString s;
    	s.p = "test";
    	s.n = 4;
    	return issue5548FromC(s, 42);
    }
    
    int issue5548_in_c() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 454 bytes
    - Viewed (0)
  7. src/runtime/cgo/gcc_fatalf.c

    //go:build aix || (!android && linux) || dragonfly || freebsd || netbsd || openbsd || solaris
    
    #include <stdarg.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include "libcgo.h"
    
    void
    fatalf(const char* format, ...)
    {
    	va_list ap;
    
    	fprintf(stderr, "runtime/cgo: ");
    	va_start(ap, format);
    	vfprintf(stderr, format, ap);
    	va_end(ap);
    	fprintf(stderr, "\n");
    	abort();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 14:57:16 UTC 2023
    - 526 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/callback_c_gc.c

    extern void crosscall2(void (*fn)(void *, int), void *, int);
    extern void _cgo_panic(void *, int);
    extern void _cgo_allocate(void *, int);
    
    void
    callPanic(void)
    {
    	struct { const char *p; } a;
    	a.p = "panic from C";
    	crosscall2(_cgo_panic, &a, sizeof a);
    	*(int*)1 = 1;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 592 bytes
    - Viewed (0)
  9. src/cmd/compile/internal/noder/export.go

    	"cmd/internal/bio"
    )
    
    func WriteExports(out *bio.Writer) {
    	var data bytes.Buffer
    
    	data.WriteByte('u')
    	writeUnifiedExport(&data)
    
    	// The linker also looks for the $$ marker - use char after $$ to distinguish format.
    	out.WriteString("\n$$B\n") // indicate binary export format
    	io.Copy(out, &data)
    	out.WriteString("\n$$\n")
    
    	if base.Debug.Export != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 25 21:16:32 UTC 2023
    - 683 bytes
    - Viewed (0)
  10. src/mime/multipart/multipart.go

    		r.nl = r.nl[1:]
    		r.nlDashBoundary = r.nlDashBoundary[1:]
    	}
    	return bytes.Equal(rest, r.nl)
    }
    
    // skipLWSPChar returns b with leading spaces and tabs removed.
    // RFC 822 defines:
    //
    //	LWSP-char = SPACE / HTAB
    func skipLWSPChar(b []byte) []byte {
    	for len(b) > 0 && (b[0] == ' ' || b[0] == '\t') {
    		b = b[1:]
    	}
    	return b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top