{"id":16974757,"url":"https://github.com/3f/unmanagedemitcalli","last_synced_at":"2026-04-24T16:03:12.227Z","repository":{"id":143351643,"uuid":"327722129","full_name":"3F/UnmanagedEmitCalli","owner":"3F","description":"A tiny hack of the System.Private.CoreLib to provide an Unmanaged EmitCalli implementation at the .NET Standard 2.0 layer.","archived":false,"fork":false,"pushed_at":"2021-01-07T21:13:35.000Z","size":48,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-10T06:48:25.872Z","etag":null,"topics":["coreclr","corelib","dllexport","dotnet","dotnetcore","emitcalli","hack","netstandard","netstandard2","netstandard20","unmanaged"],"latest_commit_sha":null,"homepage":"https://twitter.com/github3F/status/1195050366615924742","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3F.png","metadata":{"files":{"readme":"Readme.md","changelog":"changelog.txt","contributing":null,"funding":".github/FUNDING.yml","license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"github3f","custom":["3F.github.com/Donation/"]}},"created_at":"2021-01-07T20:51:02.000Z","updated_at":"2025-06-12T16:30:31.000Z","dependencies_parsed_at":"2023-06-02T06:45:08.156Z","dependency_job_id":null,"html_url":"https://github.com/3F/UnmanagedEmitCalli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/3F/UnmanagedEmitCalli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3F%2FUnmanagedEmitCalli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3F%2FUnmanagedEmitCalli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3F%2FUnmanagedEmitCalli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3F%2FUnmanagedEmitCalli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3F","download_url":"https://codeload.github.com/3F/UnmanagedEmitCalli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3F%2FUnmanagedEmitCalli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32230421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coreclr","corelib","dllexport","dotnet","dotnetcore","emitcalli","hack","netstandard","netstandard2","netstandard20","unmanaged"],"created_at":"2024-10-14T01:07:56.845Z","updated_at":"2026-04-24T16:03:12.211Z","avatar_url":"https://github.com/3F.png","language":"C#","funding_links":["https://ko-fi.com/github3f","3F.github.com/Donation/"],"categories":[],"sub_categories":[],"readme":"# [UnmanagedEmitCalli](https://github.com/3F/UnmanagedEmitCalli)\n\nA tiny **[hack](https://github.com/3F/UnmanagedEmitCalli/issues/13)** of the System.Private.CoreLib to provide missed *Unmanaged EmitCalli* implementation at the .NET Standard **2.0** layer.\n\n[![Build status](https://ci.appveyor.com/api/projects/status/6m24rr5o891fluhb/branch/master?svg=true)](https://ci.appveyor.com/project/3Fs/unmanagedemitcalli/branch/master)\n[![release-src](https://img.shields.io/github/release/3F/UnmanagedEmitCalli.svg)](https://github.com/3F/UnmanagedEmitCalli/releases/latest)\n[![License](https://img.shields.io/badge/License-MIT-74A5C2.svg)](https://github.com/3F/UnmanagedEmitCalli/blob/master/License.txt)\n[![NuGet package](https://img.shields.io/nuget/v/UnmanagedEmitCalli.svg)](https://www.nuget.org/packages/UnmanagedEmitCalli/) \n\n\n## Why UnmanagedEmitCalli ?\n\nAn *Unmanaged EmitCalli* is available only with .NET Core 2.1+ [[?](https://github.com/3F/Conari/issues/13)] That turns into a quest when you need .NET Standard 2.0 targeting.\n\nThis, however, does not require a full reimplementing or a huge dependencies like Cecil etc.\n\nBecause you can simply use the same techniques as we do https://github.com/3F/Conari/issues/13#issuecomment-554010927\n\n[UnmanagedEmitCalli](https://github.com/3F/UnmanagedEmitCalli) provides most common implementation that can be used either through dependencies or copy-paste of a bit of source code. Enjoy!\n\n## Where ?\n\nThis was used initially for 🧬 [Conari](https://github.com/3F/Conari) - Platform for working with unmanaged memory, pe-modules, related PInvoke features, and more for: Libraries, Executable Modules, enjoying of the unmanaged native C/C++ in .NET world, and other raw binary data. Even accessing to complex types like structures without their declaration at all.\n\n## Example\n\nSame for .NET Framework and .NET Core\n\n```csharp\nILGenerator il = dyn.GetILGenerator();\n\nfor(int i = 0; i \u003c mParams.Length; ++i) {\n    il.Emit(OpCodes.Ldarg, i);\n}\n\nif(IntPtr.Size == sizeof(Int64)) {\n    il.Emit(OpCodes.Ldc_I8, ptr.ToInt64());\n}\nelse {\n    il.Emit(OpCodes.Ldc_I4, ptr.ToInt32());\n}\n\nil.EmitCalliStd(CallingConvention.Cdecl, tret, mParams);\nil.Emit(OpCodes.Ret);\n```\n\n## 🍰 Open and Free\n\nOpen Source project; MIT License, Yes! Enjoy!\n\n## 🗸 License\n\nThe [MIT License (MIT)](https://github.com/3F/UnmanagedEmitCalli/blob/master/License.txt)\n\n```\nCopyright (c) 2019-2021  Denis Kuzmin \u003cx-3F@outlook.com\u003e github/3F\n```\n\n[ [ ☕ Donate ](https://3F.github.com/Donation/) ]\n\nUnmanagedEmitCalli contributors https://github.com/3F/UnmanagedEmitCalli/graphs/contributors\n\nMake your amazing contribution!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3f%2Funmanagedemitcalli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3f%2Funmanagedemitcalli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3f%2Funmanagedemitcalli/lists"}