Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 149 for writeString (0.19 sec)

  1. src/archive/zip/writer.go

    			b.uint32(uint32(h.offset))
    		}
    		if _, err := w.cw.Write(buf[:]); err != nil {
    			return err
    		}
    		if _, err := io.WriteString(w.cw, h.Name); err != nil {
    			return err
    		}
    		if _, err := w.cw.Write(h.Extra); err != nil {
    			return err
    		}
    		if _, err := io.WriteString(w.cw, h.Comment); err != nil {
    			return err
    		}
    	}
    	end := w.cw.count
    
    	records := uint64(len(w.dir))
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. src/cmd/asm/main.go

    	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.
    	if objabi.LookupPkgSpecial(ctxt.Pkgpath).AllowAsmABI {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Jun 21 19:58:04 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. istioctl/pkg/validate/validate_test.go

    	for _, r := range docs {
    		if r != "" {
    			b.WriteString(strings.Trim(r, " \t\n"))
    		}
    		b.WriteString("\n---\n")
    	}
    	return b.String()
    }
    
    func createTestFile(t *testing.T, data string) (string, io.Closer) {
    	t.Helper()
    	validFile, err := os.CreateTemp("", "TestValidateCommand")
    	if err != nil {
    		t.Fatal(err)
    	}
    	if _, err := validFile.WriteString(data); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 02 16:18:14 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2.java

            dstIndex += 2;
            writeInt2( informationLevel, dst, dstIndex );
            dstIndex += 2;
            writeInt4( searchStorageType, dst, dstIndex );
            dstIndex += 4;
            dstIndex += writeString( path + wildcard, dst, dstIndex );
    
            return dstIndex - start;
        }
        int writeDataWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 4.4K bytes
    - Viewed (0)
  5. internal/grid/types.go

    	}
    	sort.Strings(keys)
    	for _, k := range keys {
    		v := m[k]
    		keyEscaped := url.QueryEscape(k)
    		if buf.Len() > 1 {
    			buf.WriteByte('&')
    		}
    		buf.WriteString(keyEscaped)
    		buf.WriteByte('=')
    		buf.WriteString(url.QueryEscape(v))
    	}
    	return buf.String()
    }
    
    // NewBytes returns a new Bytes.
    // A slice is preallocated.
    func NewBytes() *Bytes {
    	b := Bytes(GetByteBuffer()[:0])
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans2/Trans2FindNext2.java

            dstIndex += 2;
            SMBUtil.writeInt4(this.resumeKey, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt2(this.tflags, dst, dstIndex);
            dstIndex += 2;
            dstIndex += writeString(this.filename, dst, dstIndex);
    
            return dstIndex - start;
        }
    
    
        @Override
        protected int writeDataWireFormat ( byte[] dst, int dstIndex ) {
            return 0;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/Trans2GetDfsReferral.java

            return 2;
        }
        int writeParametersWireFormat( byte[] dst, int dstIndex ) {
            int start = dstIndex;
    
            writeInt2( maxReferralLevel, dst, dstIndex );
            dstIndex += 2;
            dstIndex += writeString( path, dst, dstIndex );
    
            return dstIndex - start;
        }
        int writeDataWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  8. cmd/tier_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteMapHeader(uint32(len(z.Tiers)))
    	if err != nil {
    		err = msgp.WrapError(err, "Tiers")
    		return
    	}
    	for za0001, za0002 := range z.Tiers {
    		err = en.WriteString(za0001)
    		if err != nil {
    			err = msgp.WrapError(err, "Tiers")
    			return
    		}
    		err = za0002.EncodeMsg(en)
    		if err != nil {
    			err = msgp.WrapError(err, "Tiers", za0001)
    			return
    		}
    	}
    	return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. docs/sts/web-identity.go

    	flag.StringVar(&clientScopes, "cscopes", "openid", "Client Scopes")
    	flag.IntVar(&port, "port", 8080, "Port")
    }
    
    func implicitFlowURL(c oauth2.Config, state string) string {
    	var buf bytes.Buffer
    	buf.WriteString(c.Endpoint.AuthURL)
    	v := url.Values{
    		"response_type": {"id_token"},
    		"response_mode": {"form_post"},
    		"client_id":     {c.ClientID},
    	}
    	if c.RedirectURL != "" {
    		v.Set("redirect_uri", c.RedirectURL)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 19 09:13:33 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  10. cmd/site-replication-utils_gen.go

    	err = z.Status.EncodeMsg(en)
    	if err != nil {
    		err = msgp.WrapError(err, "Status")
    		return
    	}
    	// write "did"
    	err = en.Append(0xa3, 0x64, 0x69, 0x64)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.DeplID)
    	if err != nil {
    		err = msgp.WrapError(err, "DeplID")
    		return
    	}
    	// write "bkts"
    	err = en.Append(0xa4, 0x62, 0x6b, 0x74, 0x73)
    	if err != nil {
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Nov 14 15:16:40 UTC 2022
    - 7.2K bytes
    - Viewed (0)
Back to top