Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ReadDotLines (0.15 sec)

  1. src/net/textproto/reader_test.go

    func TestReadDotLines(t *testing.T) {
    	r := reader("dotlines\r\n.foo\r\n..bar\n...baz\nquux\r\n\r\n.\r\nanother\n")
    	s, err := r.ReadDotLines()
    	want := []string{"dotlines", "foo", ".bar", "..baz", "quux", ""}
    	if !reflect.DeepEqual(s, want) || err != nil {
    		t.Fatalf("ReadDotLines: %v, %v", s, err)
    	}
    
    	s, err = r.ReadDotLines()
    	want = []string{"another"}
    	if !reflect.DeepEqual(s, want) || err != io.ErrUnexpectedEOF {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 05 18:31:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. src/net/textproto/reader.go

    func (r *Reader) ReadDotBytes() ([]byte, error) {
    	return io.ReadAll(r.DotReader())
    }
    
    // ReadDotLines reads a dot-encoding and returns a slice
    // containing the decoded lines, with the final \r\n or \n elided from each.
    //
    // See the documentation for the [Reader.DotReader] method for details about dot-encoding.
    func (r *Reader) ReadDotLines() ([]string, error) {
    	// We could use ReadDotBytes and then Split it,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Conn).ReadCodeLine", Method, 0},
    		{"(*Conn).ReadContinuedLine", Method, 0},
    		{"(*Conn).ReadContinuedLineBytes", Method, 0},
    		{"(*Conn).ReadDotBytes", Method, 0},
    		{"(*Conn).ReadDotLines", Method, 0},
    		{"(*Conn).ReadLine", Method, 0},
    		{"(*Conn).ReadLineBytes", Method, 0},
    		{"(*Conn).ReadMIMEHeader", Method, 0},
    		{"(*Conn).ReadResponse", Method, 0},
    		{"(*Conn).StartRequest", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  4. api/go1.txt

    pkg net/textproto, method (*Conn) ReadContinuedLineBytes() ([]uint8, error)
    pkg net/textproto, method (*Conn) ReadDotBytes() ([]uint8, error)
    pkg net/textproto, method (*Conn) ReadDotLines() ([]string, error)
    pkg net/textproto, method (*Conn) ReadLine() (string, error)
    pkg net/textproto, method (*Conn) ReadLineBytes() ([]uint8, error)
    pkg net/textproto, method (*Conn) ReadMIMEHeader() (MIMEHeader, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top