13 lines
225 B
Mojo
Generated
13 lines
225 B
Mojo
Generated
struct Buffer(Copyable):
|
|
def __init__(out self):
|
|
pass
|
|
|
|
def capacity(self) -> Int:
|
|
return Self.size
|
|
|
|
|
|
def main():
|
|
var b = Buffer[8]()
|
|
print("capacity:", b.capacity())
|
|
print("size:", b.size)
|