::SHE+ILA:: Buf Size Limit [$5C]

Elegant Woman in Purple Gown in Vintage Train Carriage
49
0
  • Squishy Plushie's avatar Artist
    Squishy Pl...
  • Prompt
    Read prompt
  • DDG Model
    DaVinci2
  • Access
    Public
  • Created
    4d ago
  • Try

More about ::SHE+ILA:: Buf Size Limit [$5C]

If we don't specify a length limit when Specifying a Buf, it could grow unlimitedly, consuming the whole datastore (e.g. an infinte recursion). So we can specify a maximum size thus :
MyBuf <::[256] (string="hello", a=3, b=4, foo=&{sin(%)});
This means that if we append (Insert) more than 256 elements, an exception can be thrown. The presence of a length limit is indicated by a Buf Flag (see "Buf Flags").
The Buf format then becomes $EB flags length $ED lengthlimit $ED dopevector Datablock $00.

Comments


Loading Dream Comments...

Discover more dreams from this artist