open func drChar(fieldNo: Int32, row: Int32, column: Int32, strBuf: [UInt8]?, useDirectChg: Int32) -> Int32 {
var retValue: Int32
if strBuf == nil {
retValue = drChar(fieldNo, row, column, nil, useDirectChg)
} else {
var strBuffer = strBuf!
retValue = strBuffer.withUnsafeMutableBufferPointer {bufferPointer in
bufferPointer.baseAddress!.withMemoryRebound(to: Int8.self, capacity: strBuffer.count) {
drChar(fieldNo, row, column, $0, useDirectChg)
}
}
}
return retValue
}
open func drChar(fieldNo: Int32, row: Int32, column: Int32, strBuf: [UInt8]?, useDirectChg: Int32) -> Int32 {
var retValue: Int32
if strBuf == nil {
retValue = drChar(fieldNo, row, column, nil, useDirectChg)
} else {
var strBuffer = strBuf!
retValue = strBuffer.withUnsafeMutableBufferPointer {bufferPointer in
bufferPointer.baseAddress!.withMemoryRebound(to: Int8.self, capacity: strBuffer.count) {
drChar(fieldNo, row, column, $0, useDirectChg)
}
}
}
return retValue
}
open func drChar(fieldNo: Int32, row: Int32, column: Int32, strBuf: [UInt8]?, useDirectChg: Int32) -> Int32 {
var retValue: Int32
if var strBuffer = strBuf {
retValue = strBuffer.withUnsafeMutableBufferPointer {bufferPointer in
bufferPointer.baseAddress!.withMemoryRebound(to: Int8.self, capacity: strBuffer.count) {
drChar(fieldNo, row, column, $0, useDirectChg)
}
}
} else {
retValue = drChar(fieldNo, row, column, nil, useDirectChg)
}
return retValue
}
open func drChar(fieldNo: Int32, row: Int32, column: Int32, strBuf: [UInt8]?, useDirectChg: Int32) -> Int32 {
var retValue: Int32
if var strBuffer = strBuf {
retValue = strBuffer.withUnsafeMutableBufferPointer {bufferPointer in
bufferPointer.baseAddress!.withMemoryRebound(to: Int8.self, capacity: strBuffer.count) {
drChar(fieldNo, row, column, $0, useDirectChg)
}
}
} else {
retValue = drChar(fieldNo, row, column, nil, useDirectChg)
}
return retValue
}