Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- proc ca* (T: typedesc, fbb: ptr FlatBufferBuilder, len: int): Array[T] {.noinit.} =
- result.len = len
- result.data = cast[ptr uarray[T]](fbb.create_array(len.csize, sizeof(T), result.o))
- let boolarray = fbb.ca[bool](2)
- boolarray[0] = true
- boolarray[1] = true
Advertisement
Add Comment
Please, Sign In to add comment