- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for readCRLF (0.05 seconds)
-
cmd/streaming-signature-v4_test.go
{bytes.NewReader([]byte("he\r\n")), errMalformedEncoding}, // Test - 4 smaller buffer than expected. {bytes.NewReader([]byte("h")), io.ErrUnexpectedEOF}, } for i, tt := range tests { err := readCRLF(tt.reader) if err != tt.expectedErr { t.Errorf("Test %d: Expected %s, got %s this", i+1, tt.expectedErr, err) } } } // Tests parsing hex number into its uint64 decimal equivalent.Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.7K bytes - Click Count (0) -
cmd/streaming-signature-v4.go
} // Check if we got all we want. if len(wantTrailers) > 0 { return io.ErrUnexpectedEOF } return nil } // readCRLF - check if reader only has '\r\n' CRLF character. // returns malformed encoding if it doesn't. func readCRLF(reader io.Reader) error { buf := make([]byte, 2) _, err := io.ReadFull(reader, buf[:2]) if err != nil { return err }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 18.2K bytes - Click Count (0)