internal byte[] Data()
            {
                if (!RequestSucceeded())
                {
                    throw new InvalidOperationException("Request did not succeed");
                }

                return(PInvokeUtilities.OutParamsToBytes(
                           (out_bytes, out_size) => C.SnapshotManager_ReadResponse_GetData(
                               SelfPtr(), out_bytes, out_size)));
            }
Пример #2
0
        internal byte[] Data()
        {
            if (!C.TurnBasedMatch_HasData(SelfPtr()))
            {
                Logger.d("Match has no data.");
                return(null);
            }

            return(PInvokeUtilities.OutParamsToBytes(
                       (bytes, size) => C.TurnBasedMatch_Data(SelfPtr(), bytes, size)));
        }