sometimes user want to get the result set byte size, i.e. how many bytes are returned by graphd. as it's not elegant if we modify thrift code, just add an interface to serializer the thrfit struct.