Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ReadString (0.12 sec)

  1. cmd/storage-datatypes_gen.go

    		}
    		switch msgp.UnsafeString(field) {
    		case "id":
    			z.DiskID, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "DiskID")
    				return
    			}
    		case "v":
    			z.Volume, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Volume")
    				return
    			}
    		case "fp":
    			z.FilePath, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "FilePath")
    				return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 150.2K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v1_gen.go

    				var za0002 string
    				za0001, err = dc.ReadString()
    				if err != nil {
    					err = msgp.WrapError(err, "Checksums")
    					return
    				}
    				za0002, err = dc.ReadString()
    				if err != nil {
    					err = msgp.WrapError(err, "Checksums", za0001)
    					return
    				}
    				z.Checksums[za0001] = za0002
    			}
    			zb0001Mask |= 0x2
    		case "err":
    			z.Error, err = dc.ReadString()
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  3. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/MavenInvokerTestSupport.java

                                    new ProtoLogger(),
                                    new JLineMessageBuilderFactory())
                            .cwd(cwd)
                            .build()));
                    String log = Files.readString(logFile);
                    assertEquals(0, exitCode, log);
                }
            }
        }
    
        protected abstract Invoker<R> createInvoker();
    
        protected abstract Parser<R> createParser();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. src/bytes/buffer.go

    	b.off = end
    	b.lastRead = opRead
    	return line, err
    }
    
    // ReadString reads until the first occurrence of delim in the input,
    // returning a string containing the data up to and including the delimiter.
    // If ReadString encounters an error before finding a delimiter,
    // it returns the data read before the error and the error itself (often [io.EOF]).
    // ReadString returns err != nil if and only if the returned data does not end
    // in delim.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Oct 29 16:47:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  5. cmd/data-usage-cache_gen.go

    			} else if len(z.Tiers) > 0 {
    				for key := range z.Tiers {
    					delete(z.Tiers, key)
    				}
    			}
    			for zb0002 > 0 {
    				zb0002--
    				var za0001 string
    				var za0002 tierStats
    				za0001, err = dc.ReadString()
    				if err != nil {
    					err = msgp.WrapError(err, "Tiers")
    					return
    				}
    				var zb0003 uint32
    				zb0003, err = dc.ReadMapHeader()
    				if err != nil {
    					err = msgp.WrapError(err, "Tiers", za0001)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 75K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  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