Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for NewPtr (0.15 sec)

  1. src/cmd/compile/internal/pkginit/initAsanGlobals.go

    		name := g.Linksym().Name
    		init.Append(typecheck.Stmt(ir.NewAssignStmt(base.Pos, asanName, ir.NewString(base.Pos, name+"\000"))))
    		c = tconv(typecheck.NodAddr(asanName), types.Types[types.TUNSAFEPTR])
    		c = tconv(c, types.NewPtr(defStringstruct))
    		c = ir.NewSelectorExpr(base.Pos, ir.ODOT, c, lname("data"))
    		setField("name", c, i)
    
    		// Set the name of package being compiled as a unique identifier of a module.
    		// asanModulename = pkgName + "\000"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:24 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/closure.go

    			// we introduce function param &v *T
    			// and v remains PAUTOHEAP with &v heapaddr
    			// (accesses will implicitly deref &v).
    
    			addr := ir.NewNameAt(clofn.Pos(), typecheck.Lookup("&"+v.Sym().Name), types.NewPtr(v.Type()))
    			addr.Curfn = clofn
    			v.Heapaddr = addr
    			v = addr
    		}
    
    		v.Class = ir.PPARAM
    		decls = append(decls, v)
    
    		fld := types.NewField(src.NoXPos, v.Sym(), v.Type())
    		fld.Nname = v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/mkbuiltin.go

    		}
    		return "types.Types[types.TINTER]"
    	case *ast.MapType:
    		return fmt.Sprintf("types.NewMap(%s, %s)", i.subtype(t.Key), i.subtype(t.Value))
    	case *ast.StarExpr:
    		return fmt.Sprintf("types.NewPtr(%s)", i.subtype(t.X))
    	case *ast.StructType:
    		return fmt.Sprintf("types.NewStruct(%s)", i.fields(t.Fields, true))
    
    	default:
    		log.Fatalf("unhandled type: %#v", t)
    		panic("unreachable")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/select.go

    }
    
    // bytePtrToIndex returns a Node representing "(*byte)(&n[i])".
    func bytePtrToIndex(n ir.Node, i int64) ir.Node {
    	s := typecheck.NodAddr(ir.NewIndexExpr(base.Pos, n, ir.NewInt(base.Pos, i)))
    	t := types.NewPtr(types.Types[types.TUINT8])
    	return typecheck.ConvNop(s, t)
    }
    
    var scase *types.Type
    
    // Keep in sync with src/runtime/select.go.
    func scasetype() *types.Type {
    	if scase == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  5. src/crypto/cipher/ctr.go

    // implementation of CTR, like crypto/aes. NewCTR will check for this interface
    // and return the specific Stream if found.
    type ctrAble interface {
    	NewCTR(iv []byte) Stream
    }
    
    // NewCTR returns a [Stream] which encrypts/decrypts using the given [Block] in
    // counter mode. The length of iv must be the same as the [Block]'s block size.
    func NewCTR(block Block, iv []byte) Stream {
    	if ctr, ok := block.(ctrAble); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. security/pkg/pki/ra/fuzz_test.go

    		subjectIDs := make([]string, 0)
    		noOfEntries, err := ff.GetUint64()
    		if err != nil {
    			return
    		}
    		var i uint64
    		for i = 0; i < noOfEntries; i++ {
    			newStr, err := ff.GetString()
    			if err != nil {
    				break
    			}
    			subjectIDs = append(subjectIDs, newStr)
    		}
    
    		// call ValidateCSR()
    		ValidateCSR(csrPEM, subjectIDs)
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 12 14:51:41 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  7. src/crypto/aes/ctr_s390x.go

    	storage [streamBufferSize]byte // array backing buffer slice
    }
    
    // NewCTR returns a Stream which encrypts/decrypts using the AES block
    // cipher in counter mode. The length of iv must be the same as [BlockSize].
    func (c *aesCipherAsm) NewCTR(iv []byte) cipher.Stream {
    	if len(iv) != BlockSize {
    		panic("cipher.NewCTR: IV length must equal block size")
    	}
    	var ac aesctr
    	ac.block = c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. maven-model/src/test/java/org/apache/maven/model/v4/ModelXmlTest.java

            Model model = Model.newBuilder(true).properties(props).build();
            String xml = toXml(model);
    
            for (int i = 0; i < 10; i++) {
                String newStr = toXml(fromXml(xml));
                assertEquals(newStr, xml);
            }
        }
    
        @Test
        void testNamespaceInXmlNode() throws XMLStreamException {
            String xml = "<project xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Nov 27 23:11:34 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top