MCPcopy
hub / github.com/davyxu/tabtoy / WriteString

Method WriteString

v2/printer/util.go:55–61  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

53}
54
55func (self *Stream) WriteString(v string) {
56 rawStr := []byte(v)
57
58 binary.Write(&self.buf, binary.LittleEndian, int32(len(rawStr)))
59
60 binary.Write(&self.buf, binary.LittleEndian, rawStr)
61}
62
63func (self *Stream) WriteBytes(v []byte) {
64

Callers 8

WriteNodeValueMethod · 0.95
RunMethod · 0.95
StructTagMethod · 0.45
PrintfMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45
index2AlphabetFunction · 0.45

Calls 1

WriteMethod · 0.80

Tested by

no test coverage detected