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

Method BuildElement

message/build.go:139–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137}
138
139func (e *LightAppElement) BuildElement() []*message.Elem {
140 return []*message.Elem{{
141 LightAppElem: &message.LightAppElem{
142 Data: append([]byte{0x01}, binary.ZlibCompress([]byte(e.Content))...),
143 },
144 }}
145}
146
147func (e *XMLElement) BuildElement() []*message.Elem {
148 return []*message.Elem{{

Callers

nothing calls this directly

Calls 1

ZlibCompressFunction · 0.92

Tested by

no test coverage detected