1.3.3.2 Using FML/FML32 Typed Buffers
The Tuxedo .NET Workstation Client uses class
TypedFML
/TypedFML32
to define most FML C
functions. You should do the following steps to develop Tuxedo .NET
applications using FML typed buffers:
- Define FML field table files.
Compile field table files into C# source files using the
mkfldcs
Tuxedo .NET Workstation Client utility. The generated C# files contain public classes including definitions of every FML field ID defined in the field table files. See alsomkfldcs(1)
- Write your .NET application.
Use
TypeFML
class methods to create and access FML data.
For more FML typed buffer programming information, see Programming a Tuxedo ATMI Application Using FML.
Note:
.NET Workstation Client supports theFLD_MBSTRING
field in FML32 buffer. For more information, refer to Fmbpack32()
and Fmbunpack32().
refer to Section 3fml - FML Functions.
The following code snippet illustrates the FML Auto-Generated Code Using mkfldcs (C# code example)
using Bea.Tuxedo.FML;
namespace Bea.Tuxedo.Autogen {
public class fnext_flds {
public static readonly FLDID F_short = 110; // number: 110 type: short
public static readonly FLDID F_view32 = 369098863; // number: 111 type: view32
public static readonly FLDID F_double = 134217840; // number: 112 type: double
public static readonly FLDID F_ptr = 301990001; // number: 113 type: ptr
}
} // namespace Bea.Tuxedo.Autogen
The following code snippet illustrates the using TypedFML Class (C# code example)
……
TypedFML fmlbuf = new TypedFML(2048);
short s = 123;
fmlbuf.Fadd(fnext_flds.F_short, s);
……
fmlbuf.Resize(3000);
……
fmlbuf.Dispose();
……
Parent topic: Using Typed Buffers