Is your feature request related to a problem? Please describe.
I want to replace my existing codebase using some earlier icu.net code with the latest nuget package. I need to load a custom *.dat file to memory for a normalizer to use. The existing code is:
var data = new byte[] { /* utr30.dat */ };
var unmanagedPointer = Marshal.AllocHGlobal(data.Length);
Marshal.Copy(data, 0, unmanagedPointer, data.Length);
ErrorCode status2;
NativeMethods.udata_setAppData("utr30", unmanagedPointer, out status2);
ExceptionFromErrorCode.ThrowIfError(status2);
Describe the solution you'd like
Create a .NET wrapper that would allow setting custom data.
Describe alternatives you've considered
Copy ThrowIfError from this repo and reproduce NativeMethods.udata_setAppData in my project in order for it to work. Ugly.
Is your feature request related to a problem? Please describe.
I want to replace my existing codebase using some earlier icu.net code with the latest nuget package. I need to load a custom *.dat file to memory for a normalizer to use. The existing code is:
Describe the solution you'd like
Create a .NET wrapper that would allow setting custom data.
Describe alternatives you've considered
Copy ThrowIfError from this repo and reproduce NativeMethods.udata_setAppData in my project in order for it to work. Ugly.