Skip to content

Instantly share code, notes, and snippets.

diff --git a/relax.el b/relax.el
index 4d16beb..eddf99e 100644
--- a/relax.el
+++ b/relax.el
@@ -49,9 +49,10 @@
;;; Code:
+(require 'thingatpt)
(require 'url)
public static Transport[] Convert(object list)
{
return Convert((object[])list);
}
// 1
public static Transport[] Convert(object[] list)
{
return list.Select<object, Transport>(o =>
{
unsafe
{
byte** nativePackets = stackalloc byte*[packets.Length];
// Allocate native byte arrays.
for (int i = 0; i < packets.Length; i++)
{
nativePackets[i] = (byte *)Marshal.AllocHGlobal(packets[i].Length).ToPointer();
// TODO: try/finally, free memory allocated to date
}