Welcome to MSDN Blogs Sign in | Join | Help

January 2009 - Posts

A dbm-like interface for Esent on IronPython

I've wanted to be able to use Esent as a simple, fast, reliable and persistent key/value store. The Python standard libraries contain that kind of functionality in the *dbm modules. I've been working on providing identical functionality layered on top
Posted by laurionb | 0 Comments

A C++ Refactoring Trick for "Encapsulate Field"

I was working on some old code that had a structure that looked like this struct Foo { bool fOptionEnabled; }; Tons of places in the code would check to see if the option was enabled, and do something based on it. The change I needed to make required
Posted by laurionb | 1 Comments

Memcmp in C#

I confess that, for some years now, I've wondered what the managed equivalent of memcmp() was, usually when I wanted to compare two byte arrays for equality. It turns out that Linq provides a SequenceEquals() extension method which does exactly what I
Posted by laurionb | 2 Comments

Inserting a record does NOT move the cursor

Inserting a record into a table doesn't change the location of the JET_TABLEID used to insert the record. At one level this makes sense because a JET_TABLEID is an iterator on a table and inserting a record into a table shouldn't change the position of
Posted by laurionb | 0 Comments
 
Page view tracker