Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 62 for ReadString (0.3 sec)

  1. cmd/bucket-stats_gen.go

    				for key := range z.Stats {
    					delete(z.Stats, key)
    				}
    			}
    			for zb0002 > 0 {
    				zb0002--
    				var za0001 string
    				var za0002 *BucketReplicationStat
    				za0001, err = dc.ReadString()
    				if err != nil {
    					err = msgp.WrapError(err, "Stats")
    					return
    				}
    				if dc.IsNil() {
    					err = dc.ReadNil()
    					if err != nil {
    						err = msgp.WrapError(err, "Stats", za0001)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  2. docs/debugging/inspect/main.go

    		}
    
    		// Prompt for decryption key if no --key or --private-key are provided
    		if len(privateKey) == 0 && !*stdin {
    			reader := bufio.NewReader(os.Stdin)
    			fmt.Print("Enter Decryption Key: ")
    
    			text, _ := reader.ReadString('\n')
    			// convert CRLF to LF
    			*keyHex = strings.ReplaceAll(text, "\n", "")
    			*keyHex = strings.TrimSpace(*keyHex)
    		}
    	}
    
    	var inputs []string
    
    	// Parse parameters
    	switch {
    	case *stdin:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 31 14:49:23 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. cmd/storage-rest-common_gen.go

    	}
    	for zb0001 > 0 {
    		zb0001--
    		field, err = dc.ReadMapKeyPtr()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "id":
    			z.DiskID, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "DiskID")
    				return
    			}
    		case "m":
    			z.ScanMode, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "ScanMode")
    				return
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

       * possibility for your response.
       */
      @Throws(IOException::class)
      fun string(): String =
        source().use { source ->
          source.readString(charset = source.readBomAsCharset(charset()))
        }
    
      private fun charset() = contentType().charsetOrUtf8()
    
      override fun close() = commonClose()
    
      internal class BomAwareReader(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v2_gen.go

    					}
    				}
    				for zb0011 > 0 {
    					zb0011--
    					var za0011 string
    					var za0012 string
    					za0011, err = dc.ReadString()
    					if err != nil {
    						err = msgp.WrapError(err, "MetaUser")
    						return
    					}
    					za0012, err = dc.ReadString()
    					if err != nil {
    						err = msgp.WrapError(err, "MetaUser", za0011)
    						return
    					}
    					z.MetaUser[za0011] = za0012
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  6. src/bufio/bufio_test.go

    	{"half", iotest.HalfReader},
    	{"data+err", iotest.DataErrReader},
    	{"timeout", iotest.TimeoutReader},
    }
    
    // Call ReadString (which ends up calling everything else)
    // to accumulate the text of a file.
    func readLines(b *Reader) string {
    	s := ""
    	for {
    		s1, err := b.ReadString('\n')
    		if err == io.EOF {
    			break
    		}
    		if err != nil && err != iotest.ErrTimeout {
    			panic("GetLines: " + err.Error())
    		}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  7. src/bytes/buffer_test.go

    func TestReadString(t *testing.T) {
    	for _, test := range readBytesTests {
    		buf := NewBufferString(test.buffer)
    		var err error
    		for _, expected := range test.expected {
    			var s string
    			s, err = buf.ReadString(test.delim)
    			if s != expected {
    				t.Errorf("expected %q, got %q", expected, s)
    			}
    			if err != nil {
    				break
    			}
    		}
    		if err != test.err {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  8. cmd/bucket-metadata_gen.go

    	}
    	for zb0001 > 0 {
    		zb0001--
    		field, err = dc.ReadMapKeyPtr()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "Name":
    			z.Name, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Name")
    				return
    			}
    		case "Created":
    			z.Created, err = dc.ReadTime()
    			if err != nil {
    				err = msgp.WrapError(err, "Created")
    				return
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  9. src/archive/tar/reader.go

    		}
    		return nil
    	}
    
    	// nextToken gets the next token delimited by a newline. This assumes that
    	// at least one newline exists in the buffer.
    	nextToken := func() string {
    		cntNewline--
    		tok, _ := buf.ReadString('\n')
    		return strings.TrimRight(tok, "\n")
    	}
    
    	// Parse for the number of entries.
    	// Use integer overflow resistant math to check this.
    	if err := feedTokens(1); err != nil {
    		return nil, err
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  10. cmd/data-usage-cache.go

    		return
    	}
    	if zb0002 == 0 {
    		*z = nil
    		return
    	}
    	*z = make(dataUsageHashMap, zb0002)
    	for i := uint32(0); i < zb0002; i++ {
    		{
    			var zb0003 string
    			zb0003, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    			(*z)[zb0003] = struct{}{}
    		}
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 34.7K bytes
    - Viewed (0)
Back to top