Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 149 for WriteString (0.11 sec)

  1. src/bufio/bufio.go

    			// Can only happen if buffer is silly small.
    			return b.WriteString(string(r))
    		}
    	}
    	size = utf8.EncodeRune(b.buf[b.n:], r)
    	b.n += size
    	return size, nil
    }
    
    // WriteString writes a string.
    // It returns the number of bytes written.
    // If the count is less than len(s), it also returns an error explaining
    // why the write is short.
    func (b *Writer) WriteString(s string) (int, error) {
    	var sw io.StringWriter
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  2. cmd/site-replication-metrics_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.DeploymentID)
    	if err != nil {
    		err = msgp.WrapError(err, "DeploymentID")
    		return
    	}
    	// write "Endpoint"
    	err = en.Append(0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Endpoint)
    	if err != nil {
    		err = msgp.WrapError(err, "Endpoint")
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 40.6K bytes
    - Viewed (0)
  3. cmd/metacache-stream.go

    		if len(o.name) == 0 {
    			return errors.New("metacacheWriter: no name provided")
    		}
    		// Indicate EOS
    		err := w.mw.WriteBool(true)
    		if err != nil {
    			return err
    		}
    		err = w.mw.WriteString(o.name)
    		if err != nil {
    			return err
    		}
    		err = w.mw.WriteBytes(o.metadata)
    		if err != nil {
    			return err
    		}
    		if w.reuseBlocks || o.reusable {
    			metaDataPoolPut(o.metadata)
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComOpenAndX.java

        protected int writeBytesWireFormat ( byte[] dst, int dstIndex ) {
            int start = dstIndex;
    
            if ( this.isUseUnicode() ) {
                dst[ dstIndex++ ] = (byte) '\0';
            }
            dstIndex += writeString(this.path, dst, dstIndex);
    
            return dstIndex - start;
        }
    
    
        @Override
        protected int readParameterWordsWireFormat ( byte[] buffer, int bufferIndex ) {
            return 0;
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 7K bytes
    - Viewed (0)
  5. cmd/erasure-healing-common_test.go

    					f, err := os.OpenFile(filePath, os.O_WRONLY|os.O_SYNC, 0)
    					if err != nil {
    						t.Fatalf("Failed to open %s: %s\n", filePath, err)
    					}
    					f.WriteString("oops") // Will cause bitrot error
    					f.Close()
    					break
    				}
    
    			}
    
    			rQuorum := len(errs) - z.serverPools[0].sets[0].defaultParityCount
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 15:19:10 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. cmd/signature-v4.go

    		headers = append(headers, k)
    		vals[k] = vv
    	}
    	sort.Strings(headers)
    
    	var buf bytes.Buffer
    	for _, k := range headers {
    		buf.WriteString(k)
    		buf.WriteByte(':')
    		for idx, v := range vals[k] {
    			if idx > 0 {
    				buf.WriteByte(',')
    			}
    			buf.WriteString(signV4TrimAll(v))
    		}
    		buf.WriteByte('\n')
    	}
    	return buf.String()
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  7. cmd/tier-last-day-stats_gen.go

    func (z DailyAllTierStats) EncodeMsg(en *msgp.Writer) (err error) {
    	err = en.WriteMapHeader(uint32(len(z)))
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0007, zb0008 := range z {
    		err = en.WriteString(zb0007)
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		// map header, size 2
    		// write "Bins"
    		err = en.Append(0x82, 0xa4, 0x42, 0x69, 0x6e, 0x73)
    		if err != nil {
    			return
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/lex/lex_test.go

    	for {
    		tok := input.Next()
    		if tok == scanner.EOF {
    			return buf.String()
    		}
    		if tok == '#' {
    			continue
    		}
    		if buf.Len() > 0 {
    			buf.WriteByte('.')
    		}
    		buf.WriteString(input.Text())
    	}
    }
    
    type badLexTest struct {
    	input string
    	error string
    }
    
    var badLexTests = []badLexTest{
    	{
    		"3 #define foo bar\n",
    		"'#' must be first item on line",
    	},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java

            dstIndex += 4;
            dst[dstIndex++] = securityFlags;
    
            return dstIndex - start;
        }
        int writeBytesWireFormat( byte[] dst, int dstIndex ) {
            int n;
            n = writeString( path, dst, dstIndex );
            writeInt2( ( useUnicode ? path.length() * 2 : n ), dst, namelen_index );
            return n;
        }
        int readParameterWordsWireFormat( byte[] buffer, int bufferIndex ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 6.6K bytes
    - Viewed (0)
  10. istioctl/pkg/tag/tag.go

    	var sb strings.Builder
    	base := fmt.Sprintf("Caution, found %d namespace(s) still injected by tag %q:", len(taggedNamespaces), tag)
    	sb.WriteString(base)
    	for _, ns := range taggedNamespaces {
    		sb.WriteString(" " + ns)
    	}
    	sb.WriteString("\nProceed with operation? [y/N]")
    
    	return sb.String()
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Jul 22 15:40:30 UTC 2024
    - 16.5K bytes
    - Viewed (0)
Back to top