Exemplo n.º 1
0
        public KRPCResponse unPackResponse(Byte[] bytes)
        {
            KDataPackager responseData = new KDataPackager(bytes);

            KRPCResponse response = new KRPCResponse();

            response.requestId = responseData.readInt();

            response.result = responseData.readValue();

            return response;

        }
Exemplo n.º 2
0
        public Byte[] packResponse(KRPCResponse response)
        {

            KDataPackager responseData = new KDataPackager();

            responseData.writeInt(response.requestId);
            responseData.writeValue(response.result);

            return responseData.data;

        }