public int Write(byte[] data, int len, OnZitiDataWritten afterDataWritten, object context) { aafterData = afterDataWritten; return(Native.API.ziti_write(nativeConnection, data, len, afterData, GCHandle.ToIntPtr(GCHandle.Alloc(context)))); }
public int Write(byte[] data, OnZitiDataWritten afterDataWritten, object context) { return(Write(data, data.Length, afterDataWritten, context)); }