MCPcopy
hub / github.com/rclone/rclone / WriteString

Method WriteString

backend/mailru/api/helpers.go:78–83  ·  view source on GitHub ↗

WriteString writes a zero-terminated string

(str string)

Source from the content-addressed store, hash-verified

76
77// WriteString writes a zero-terminated string
78func (w *BinWriter) WriteString(str string) {
79 buf := []byte(str)
80 w.WritePu64(int64(len(buf) + 1))
81 w.b.Write(buf)
82 w.b.WriteByte(0)
83}
84
85// Write writes a byte buffer
86func (w *BinWriter) Write(buf []byte) {

Callers 4

listBinMethod · 0.95
CreateDirMethod · 0.95
moveItemBinMethod · 0.95
addFileMetaDataMethod · 0.95

Calls 2

WritePu64Method · 0.95
WriteMethod · 0.65

Tested by

no test coverage detected