getValue method

bool getValue(
  1. TStringRef aValue
)

Implementation

bool getValue(TStringRef aValue) {
  final buf = TValueBuffer();
  final result = getData(buf);
  if (result) {
    var s = '${buf.value ?? ''}';
    if (size > 0 && s.length > size) s = s.substring(0, size); // truncate
    aValue.value = s;
  }
  return result;
}