MCPcopy Create free account
hub / github.com/Monibuca/engine / writeProperty

Method writeProperty

util/amf.go:192–196  ·  view source on GitHub ↗
(key string, v any)

Source from the content-addressed store, hash-verified

190}
191
192func (amf *AMF) writeProperty(key string, v any) {
193 amf.WriteUint16(uint16(len(key)))
194 amf.WriteString(key)
195 amf.Marshal(v)
196}
197
198func MarshalAMFs(v ...any) []byte {
199 var amf AMF

Callers 1

MarshalMethod · 0.95

Calls 3

MarshalMethod · 0.95
WriteUint16Method · 0.65
WriteStringMethod · 0.65

Tested by

no test coverage detected