Click here to Skip to main content
15,894,343 members
Articles / Programming Languages / C#

P/Invoke Jujitsu: A Data Kata

Rate me:
Please Sign up or sign in to vote.
5.00/5 (7 votes)
11 Jul 2020MIT14 min read 5.8K   64   6  
Exploit the memory layout of your data to make your P/Invoke code more accessible and maintainable
Effectively use P/Invoke by understanding how to represent your data's memory in different ways to do different operations with your code. This article will show you how you can direct the marshaller to give you the same data in different formats depending on how it best serves your project.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
United States United States
Just a shiny lil monster. Casts spells in C++. Mostly harmless.

Comments and Discussions