This project is based on SmartFoxServer, and it transfor the binary data to map in Golang.
In my working project(not this one), our game server(Java) need to store some game data in database by storing into a class and celling this. Our operation server(Golang) which shows statistics data and collect Flurry data and to decode the binary data. The offical website is not provide Golang API and therefore I made up this project. The following picture shows the situation.
The testdata in the main file is a binary data and transfor to hex string. SFSReader is a class which may implement the SFSObject in java.
SFSReader:
- DecodeDataToMap: Decode the binary data to map data. It's similar to newFromBinaryData
- SFSGetArray: Get sfs array from DataWrapper(SFSPbject).
- SFSGetIntArray: Get int array from DataWrapper(SFSPbject).
- SFSGetInt: Get int from DataWrapper(SFSObject)
I use ILSpy to decompile C# Smartfoxserver (Plz don't sue me), and I may give some suggestions to this API.