public unsafe byte[] GetPipelineCacheData(PipelineCache pipelineCache) { PointerSize count = 0; GetPipelineCacheData(pipelineCache, ref count, IntPtr.Zero); var result = new byte[count]; if (count > 0) { fixed(byte *resultPtr = &result[0]) GetPipelineCacheData(pipelineCache, ref count, new IntPtr(resultPtr)); } return(result); }
/// <summary> /// Determines whether the specified <see cref = "PointerSize" /> is equal to this instance. /// </summary> /// <param name = "other">The <see cref = "PointerSize" /> to compare with this instance.</param> /// <returns> /// <c>true</c> if the specified <see cref = "PointerSize" /> is equal to this instance; otherwise, <c>false</c>. /// </returns> public bool Equals(PointerSize other) { return(_size == other._size); }