The TLookupBuffer Structure
A mapper provider uses theTLookupBufferstructure to be able to parse through the buffer passed back in thereplyparameter to theOTLookupNamefunction (page 4-25). When you allocate a buffer in which theOTLookupNamefunction places the names it has found, you must cast it as aTLookupBufferstructure. You must make sure that the buffer you allocate is large enough to contain all the names returned by theOTLookupNamefunction, plus up to 3 bytes of padding for each name, plus an additional 8 bytes for each name returned. Figure 4-1 on page 4-8 shows the structure of the reply buffer.The
TLookupBufferstructure is defined by theTLookupBufferdata type.
struct TLookupBuffer { UInt16 fAddressLength; UInt16 fNameLength; UInt8 fAddressBuffer[1]; };Field descriptions
fAddressLength- Specifies the size of the address specified by the
fAddressBufferfield.fNameLength- Specifies the size of the name that is stored in the buffer following the
fAddressBufferfield.fAddressBuffer- Specifies the address to which the entity whose name follows (in the buffer) is bound.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help