ModularM
Modular16mo ago
51 replies
aurelian

why does this String init work without len?

buf = InlineArray[UInt8, 640](0)
...
s = String(buf.unsafe_ptr())

init sig:
fn __init__(inout self, ptr: UnsafePointer[UInt8], len: Int): 
Was this page helpful?