Unexported struct fields

This commit is contained in:
Ginger Bill
2017-02-19 12:38:49 +00:00
parent 3cec2550d9
commit 6fdcbefe5d
5 changed files with 52 additions and 28 deletions
+2
View File
@@ -11,6 +11,8 @@ Buffer :: struct {
length: int,
}
buffer_write :: proc(buf: ^Buffer, b: []byte) {
if buf.length < buf.data.count {
n := min(buf.data.count-buf.length, b.count);