mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-30 09:11:48 -07:00
Unexported struct fields
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user