Skip to content

Instantly share code, notes, and snippets.

View jsbattig's full-sized avatar

Jose Sebastian Battig jsbattig

View GitHub Profile
@jsbattig
jsbattig / svcbus_thread_pool.h
Created March 5, 2014 23:38
Thread Pooling class headers
/* Copyright 2013 Convey Compliance Systems, Inc.
*
* All rights reserved. No warranty, explicit or implicit, provided.
*/
#ifndef SVCBUS_THREADPOOL_H
#define SVCBUS_THREADPOOL_H
#include <Windows.h>
unit TestuWinVMMemoryStream;
{
Delphi DUnit Test Case
----------------------
This unit contains a skeleton test case class generated by the Test Case Wizard.
Modify the generated code to correctly setup and call the methods from the unit
being tested.
}
@jsbattig
jsbattig / uWinVMMemoryStream.pas
Last active December 20, 2015 00:28
This class allows to create a TStream descendant in Delphi that allocates memory directly using VirtualAlloc allowing the developer to control the MemoryAttributes he/she wishes to use. I wrote this class in order to use with a JIT compiler that generated code using a TStream descendant object that was being blocked by DEP. With this you can cre…
unit uWinVMMemoryStream;
interface
uses
Classes, Windows;
type
TWinVMMemoryStream = class(TMemoryStream)
private