Efl.Io.Buffer.limit

Description

Limit how big the buffer can grow.

This affects both Efl.Io.Buffer.preallocate and how buffer grows when Efl.Io.Writer.write is called.

If you want a buffer of an exact size always set the limit before any further calls that can expand it.

Values

  • size - Defines a maximum buffer size, or 0 to allow unlimited amount of bytes

Setter

Constructor-only property to set buffer limit. 0 is unlimited

Signature

@property limit {
    get {}
    set {}
    values {
        size: size;
    }
}

C signature

size_t efl_io_buffer_limit_get(const Eo *obj);
void efl_io_buffer_limit_set(Eo *obj, size_t size);

Implemented by