|
|
@ -256,11 +256,11 @@ func ReadPacket(reader io.Reader) (*Packet, error) { |
|
|
|
} |
|
|
|
|
|
|
|
func DecodeString(data []byte) (ret string) { |
|
|
|
for _, c := range data { |
|
|
|
ret += fmt.Sprintf("%c", c) |
|
|
|
} |
|
|
|
// for _, c := range data {
|
|
|
|
// ret += fmt.Sprintf("%c", c)
|
|
|
|
// }
|
|
|
|
|
|
|
|
return |
|
|
|
return string(data) |
|
|
|
} |
|
|
|
|
|
|
|
func DecodeInteger(data []byte) (ret uint64) { |
|
|
|