- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for isValidRecordText (0.7 sec)
-
src/cmd/vendor/golang.org/x/mod/sumdb/tlog/note.go
func FormatRecord(id int64, text []byte) (msg []byte, err error) { if !isValidRecordText(text) { return nil, errMalformedRecord } msg = []byte(fmt.Sprintf("%d\n", id)) msg = append(msg, text...) msg = append(msg, '\n') return msg, nil } // isValidRecordText reports whether text is syntactically valid record text. func isValidRecordText(text []byte) bool { var last rune for i := 0; i < len(text); {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 29 20:10:15 UTC 2019 - 3.7K bytes - Viewed (0)