MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / WriteStruct

Method WriteStruct

utils/binary/builder.go:146–153  ·  view source on GitHub ↗
(data ...any)

Source from the content-addressed store, hash-verified

144}
145
146func (b *Builder) WriteStruct(data ...any) *Builder {
147 b.p(func(ub *pbuf.UserBuffer[teacfg]) {
148 for _, data := range data {
149 _ = binary.Write(ub, binary.BigEndian, data)
150 }
151 })
152 return b
153}
154
155func (b *Builder) WriteU8(v uint8) *Builder {
156 b.p(func(ub *pbuf.UserBuffer[teacfg]) {

Callers 3

T106Function · 0.80
T177Function · 0.80
T1bFunction · 0.80

Calls 2

pMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected