Here’s how I would code it in C++:
void put8At ( unsigned char *b, int pos, int v )
{
b[pos] = v & 0xff;
}
This is probably easier to translate to C# now.
More Related Contents:
- .NET bug. How to fix?
- dynamic & object ConstructorInfo.Invoke(object[] parameters)
- Procedure or function xxxxx has too many arguments specified [duplicate]
- How to remove all namespaces from XML with C#?
- std::string in C#?
- Why does “int[] is uint[] == true” in C#
- What is the best scripting language to embed in a C# desktop application? [closed]
- How to use dependency injection with an attribute?
- Performing Inserts and Updates with Dapper
- Waiting for async/await inside a task
- Add Header and Footer for PDF using iTextsharp
- Comparing boxed value types
- ado.net Closing Connection when using “using” statement
- Unable to connect to ASP.Net Development Server issue
- Line intersection with AABB Rectangle?
- Bring another processes Window to foreground when it has ShowInTaskbar = false
- Can I simply ‘read’ a file that is in use?
- Non-repetitive random number
- Difference between returning and awaiting a Task in an async method [duplicate]
- Datagridview: How to set a cell in editing mode?
- How to get awaitable Thread.Sleep?
- C# list.Orderby descending
- How to delete an array in c#?
- C# 3.0 Auto-Properties – Is it possible to add custom behaviour?
- How can I get the last day of the month in C#? [duplicate]
- What is difference between RegAsm.exe and regsvr32? How to generate a tlb file using regsvr32?
- Print html document from Windows Service in C# without print dialog
- C#: How to make Sieve of Atkin incremental
- ExpectedConditions.ElementIsVisible returns TimeoutException even when element is present
- Decompressing password-protected ZIP files with .NET 4.5