Midware TMWBuffer.DataBuffer

From Overbyte
Jump to navigation Jump to search

Main page -> Midware component reference -> TMWBuffer -> DataBuffer


property DataBuffer: PChar;


Gives access to the underlaying data buffer. Normal application should not access this property but use methods and properties to read and write data. DataBuffer will change during component life because buffer may be expanded as data has to be written.

Writing this value is allowed and force a buffer for data storage. Property DataBufferSize must also be properly set if DataBuffer is written. If the buffer is forced then the component cannot expand it as needed to write fields.

Setting DataBuffer to nil will free buffer memory if it was allocated by the component. A new buffer will be allocated when needed.