(version int32)
| 42 | } |
| 43 | |
| 44 | func (this *Stat) EncodeSumKey(version int32) string { |
| 45 | return string(byteutils.Concat([]byte(this.Time), []byte{'_'}, int32ToBigEndian(version), int64ToBigEndian(this.ServerId))) |
| 46 | } |
| 47 | |
| 48 | func DecodeValueKey(valueKey string) (serverId int64, timeString string, version int32, value int64, hash string, err error) { |
| 49 | var b = []byte(valueKey) |