comparison modules/bytearray.tp @ 258:fb922651db29

Pass size parameter to _init in bytearray
author Michael Pavone <pavone@retrodev.com>
date Wed, 28 May 2014 09:48:09 -0700
parents 270d31c6c4cd
children d1dc2d70bdfd
comparison
equal deleted inserted replaced
252:004946743678 258:fb922651db29
48 funret <- make_object: (addr_of: obj_uint64_meta) NULL 0 48 funret <- make_object: (addr_of: obj_uint64_meta) NULL 0
49 funret num!: ( fun: (arg num) ) 49 funret num!: ( fun: (arg num) )
50 funret 50 funret
51 } 51 }
52 } 52 }
53 buf _init 53 buf _init: size
54 } 54 }
55 55
56 executableFromBytes <- :bytes { 56 executableFromBytes <- :bytes {
57 totalSize <- bytes fold: 0 with: :acc el { 57 totalSize <- bytes fold: 0 with: :acc el {
58 acc + (el length) 58 acc + (el length)