func getMemoBuf(_ fieldno: Int) -> Data?

The function getMemoBuf() returns content of memo field or NULL.
It can requrn binary data too.
The library reuses memory for reading memo. You have to copy received data somewhere because they will be released at next call.
Do not forget to call readRecord().

    // your code
    dbf.readRecord( row )
    let data = dbf.getMemoBuf(0)
    if data <> nil {
        print( "Length of memo = " + String(data?.length) )
    // your code