def _registerPickleType(name, typedef):
        '''
        Register a type with the specified name. After registration, NamedStruct with this type
        (and any sub-types) can be successfully pickled and transfered.
        '''
        NamedStruct._pickleNames[typedef] = name
        NamedStruct._pickleTypes[name] = typedef
Register a type with the specified name. After registration, NamedStruct with this type
        (and any sub-types) can be successfully pickled and transfered.