Created
February 11, 2011 03:09
-
-
Save SpaceManiac/821859 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ICArray(name, *args): | |
struct = Struct(name + "_data", *args) | |
array = MetaArray(lambda ctx: ctx[name + "_len"], struct) | |
return Struct(name, UBInt16(name + "_len"), array, struct) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment