mirror of
https://github.com/Sarsoo/csbindgen.git
synced 2024-12-23 06:56:27 +00:00
27 lines
589 B
C#
27 lines
589 B
C#
// See https://aka.ms/new-console-template for more information
|
|
//using Csbindgen;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
unsafe
|
|
{
|
|
//var v = NativeMethods.csbindgen_LZ4_versionString();
|
|
|
|
|
|
//var bytes = new byte[] { 1, 10, 100, 100, 100, 100, 100, 100 };
|
|
//var dest = new byte[100];
|
|
|
|
//fixed (byte* p = bytes)
|
|
//fixed (byte* d = dest)
|
|
//{
|
|
|
|
// var len = NativeMethods.csbindgen_LZ4_compress_default(p, d, bytes.Length, dest.Length);
|
|
|
|
//}
|
|
|
|
|
|
// var vvv = new string((sbyte*)v);
|
|
|
|
// Console.WriteLine(vvv);
|
|
|
|
}
|