Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 873 for Parses (0.12 sec)

  1. src/text/template/parse/parse.go

    	case *WithNode:
    	default:
    		panic("unknown node: " + n.String())
    	}
    	return false
    }
    
    // parse is the top-level parser for a template, essentially the same
    // as itemList except it also parses {{define}} actions.
    // It runs to EOF.
    func (t *Tree) parse() {
    	t.Root = t.newList(t.peek().pos)
    	for t.peek().typ != itemEOF {
    		if t.peek().typ == itemLeftDelim {
    			delim := t.next()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  2. src/cmd/internal/pgo/deserialize.go

    		// Empty file.
    		return false, nil
    	} else if err != nil {
    		return false, fmt.Errorf("error reading profile header: %w", err)
    	}
    
    	return string(hdr) == serializationHeader, nil
    }
    
    // FromSerialized parses a profile from serialization output of Profile.WriteTo.
    func FromSerialized(r io.Reader) (*Profile, error) {
    	d := emptyProfile()
    
    	scanner := bufio.NewScanner(r)
    	scanner.Split(bufio.ScanLines)
    
    	if !scanner.Scan() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. src/syscall/dirent.go

    	case 4:
    		return uint64(byteorder.LeUint32(b))
    	case 8:
    		return uint64(byteorder.LeUint64(b))
    	default:
    		panic("syscall: readInt with unsupported size")
    	}
    }
    
    // ParseDirent parses up to max directory entries in buf,
    // appending the names to names. It returns the number of
    // bytes consumed from buf, the number of entries added
    // to names, and the new names slice.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. internal/bucket/object/lock/lock.go

    		}
    	}
    
    	return r
    }
    
    // Maximum 4KiB size per object lock config.
    const maxObjectLockConfigSize = 1 << 12
    
    // ParseObjectLockConfig parses ObjectLockConfig from xml
    func ParseObjectLockConfig(reader io.Reader) (*Config, error) {
    	config := Config{}
    	if err := xml.NewDecoder(io.LimitReader(reader, maxObjectLockConfigSize)).Decode(&config); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/expiration.go

    )
    
    // ExpirationDays is a type alias to unmarshal Days in Expiration
    type ExpirationDays int
    
    // UnmarshalXML parses number of days from Expiration and validates if
    // greater than zero
    func (eDays *ExpirationDays) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error {
    	var numDays int
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Feb 21 20:28:34 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. src/internal/trace/testtrace/expectation.go

    		return fmt.Errorf("unexpected error while reading the trace: want something matching %q, got %s", e.errorMatcher, err.Error())
    	}
    	return nil
    }
    
    // ParseExpectation parses the serialized form of an Expectation.
    func ParseExpectation(data []byte) (*Expectation, error) {
    	exp := new(Expectation)
    	s := bufio.NewScanner(bytes.NewReader(data))
    	if s.Scan() {
    		c := strings.SplitN(s.Text(), " ", 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. cni/pkg/plugin/sidecar_iptables_linux.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    // This is a sample chained plugin that supports multiple CNI versions. It
    // parses prevResult according to the cniVersion
    package plugin
    
    import (
    	"fmt"
    
    	"github.com/containernetworking/plugins/pkg/ns"
    
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/tools/istio-iptables/pkg/cmd"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 17:36:41 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. src/syscall/sockcmsg_unix.go

    }
    
    // SocketControlMessage represents a socket control message.
    type SocketControlMessage struct {
    	Header Cmsghdr
    	Data   []byte
    }
    
    // ParseSocketControlMessage parses b as an array of socket control
    // messages.
    func ParseSocketControlMessage(b []byte) ([]SocketControlMessage, error) {
    	var msgs []SocketControlMessage
    	i := 0
    	for i+CmsgLen(0) <= len(b) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. src/internal/trace/raw/reader.go

    // license that can be found in the LICENSE file.
    
    package raw
    
    import (
    	"bufio"
    	"encoding/binary"
    	"fmt"
    	"io"
    
    	"internal/trace/event"
    	"internal/trace/version"
    )
    
    // Reader parses trace bytes with only very basic validation
    // into an event stream.
    type Reader struct {
    	r     *bufio.Reader
    	v     version.Version
    	specs []event.Spec
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. src/encoding/csv/fuzz_test.go

    			}
    
    			// The reader turns \r\n into \n.
    			for _, record := range records {
    				for i, s := range record {
    					record[i] = strings.ReplaceAll(s, "\r\n", "\n")
    				}
    			}
    			// Note that the reader parses the quoted record "" as an empty string,
    			// and the writer turns that into an empty line, which the reader skips over.
    			// Filter those out to avoid false positives.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 01:26:13 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top