mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Code quality changes [skip ci]
This commit is contained in:
parent
61cfe004c5
commit
798ca503a5
108 changed files with 1981 additions and 2258 deletions
|
@ -50,7 +50,7 @@ namespace GreenshotPlugin.Core {
|
|||
/// Get a struct from a byte array
|
||||
/// </summary>
|
||||
/// <typeparam name="T">typeof struct</typeparam>
|
||||
/// <param name="bytes">byte[]</param>
|
||||
/// <param name="intPtr">Pointer to the structor to return</param>
|
||||
/// <returns>struct</returns>
|
||||
public static T FromIntPtr<T>(IntPtr intPtr) where T : struct {
|
||||
object obj = Marshal.PtrToStructure(intPtr, typeof(T));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue