parsav  Diff

Differences From Artifact [c8b5d8bfdc]:

To Artifact [c25d641c64]:


    36     36   do local strptr = (lib.mem.ptr(int8))
    37     37   	local strref = (lib.mem.ref(int8))
    38     38   	local byteptr = (lib.mem.ptr(uint8))
    39     39   	local function install_funcs(ty)
    40     40   		ty.metamethods.__cast = function(from,to,e)
    41     41   			local v = e:asvalue()
    42     42   			if type(v) == 'string' then
    43         -				print('hard-coding pstr',v,#v)
    44     43   				return `ty {ptr = v, ct = [#v]}
    45     44   			elseif from == &int8 then
    46     45   				return `ty {ptr = e, ct = m.sz(e)}
    47     46   			elseif to == &int8 then
    48     47   				return e.ptr
    49     48   			end
    50     49   		end