コード例 #1
0
        public CompressedAV1Data GetCompressedAV1Data(IntPtr nativePointer)
        {
            VerifyNotDisposed();

            CompressedAV1Data data = null;

            for (int i = 0; i < this.compressedData.Count; i++)
            {
                CompressedDataState state = this.compressedData[i];

                if (state.NativePointer == nativePointer)
                {
                    data = state.GetData();
                }
            }

            if (data is null)
            {
                ExceptionUtil.ThrowInvalidOperationException("The native data was not allocated by this class.");
            }

            return(data);
        }