Growing Buffer Stream

#import "std/growing_buffer_stream"

Growing Buffer Stream is dynamically allocated stream buffer reallocating internal memory block if it runs out of space.

std.GrowingBufferStream

GrowingBufferStream :: struct {
    allocator: *Allocator;
    data: []u8;
    position: s64;
    end: s64;
}

File: growing_buffer_stream.bl

std.growing_buffer_stream_init

growing_buffer_stream_init :: fn (stream: *GrowingBufferStream, size : usize: 0, allocator : *Allocator: null) 

File: growing_buffer_stream.bl

std.growing_buffer_stream_terminate

growing_buffer_stream_terminate :: fn (stream: *GrowingBufferStream) 

File: growing_buffer_stream.bl