Exemple #1
0
func (z *Forward) Msgsize() (s int) {
	s = msgp.ArrayHeaderSize + msgp.StringPrefixSize + len(z.Tag) + msgp.ArrayHeaderSize
	for xvk := range z.Entries {
		s += msgp.ArrayHeaderSize + msgp.Int64Size + msgp.GuessSize(z.Entries[xvk].Record)
	}
	s += msgp.GuessSize(z.Option)
	return
}
Exemple #2
0
func (z *Message) Msgsize() (s int) {
	s = 1 + 5 + msgp.BytesPrefixSize + len(z.Body) + 5 + msgp.MapHeaderSize
	if z.Meta != nil {
		for xvk, bzg := range z.Meta {
			_ = bzg
			s += msgp.StringPrefixSize + len(xvk) + msgp.GuessSize(bzg)
		}
	}
	s += 3 + msgp.StringPrefixSize + len(z.ContentType)
	return
}
func (z *ServerResponse) Msgsize() (s int) {
	s = 1
	if z.Header == nil {
		s += msgp.NilSize
	} else {
		s += 1 + 11 + msgp.StringPrefixSize + len(z.Header.Id) + 2 + msgp.IntSize + 12 + msgp.StringPrefixSize + len(z.Header.ResponseTo)
	}
	s += msgp.StringPrefixSize + len(z.Name) + msgp.ArrayHeaderSize
	for bzg := range z.Params {
		s += msgp.GuessSize(z.Params[bzg])
	}
	return
}
func (z *Node) Msgsize() (s int) {
	s = 1 + 3 + msgp.BytesPrefixSize + len([]byte(z.ID)) + 3 + msgp.BoolSize + 3 + msgp.ArrayHeaderSize
	for cmr := range z.ChildValues {
		s += msgp.GuessSize(z.ChildValues[cmr])
	}
	s += 3 + msgp.ArrayHeaderSize
	for ajw := range z.ChildKeys {
		if z.ChildKeys[ajw] == nil {
			s += msgp.NilSize
		} else {
			s += z.ChildKeys[ajw].Msgsize()
		}
	}
	return
}
Exemple #5
0
func (z Entry) Msgsize() (s int) {
	s = msgp.ArrayHeaderSize + msgp.Int64Size + msgp.GuessSize(z.Record)
	return
}
Exemple #6
0
func (z *Message) Msgsize() (s int) {
	s = msgp.ArrayHeaderSize + msgp.StringPrefixSize + len(z.Tag) + msgp.Int64Size + msgp.GuessSize(z.Record) + msgp.GuessSize(z.Option)
	return
}
func (z *CacheRegistry) Msgsize() (s int) {
	s = 1 + 9 + msgp.StringPrefixSize + len(z.CacheKey) + 8 + msgp.GuessSize(z.Payload) + 9 + msgp.Float64Size + 10 + msgp.TimeSize + 9 + msgp.BoolSize + 9 + msgp.StringPrefixSize + len(z.TypeName)
	return
}
func (z *Key) Msgsize() (s int) {
	s = 1 + 2 + msgp.BytesPrefixSize + len([]byte(z.UUID)) + 2 + msgp.GuessSize(z.Value) + 2 + msgp.BytesPrefixSize + len(z.Payload)
	return
}