Documentation Set for Swarm 2.2
Prev | Reference II. Collections Library | Next

# MemberSlot

## Name

MemberSlot -- Allocation in member/key for fast setMember:/setKey:

## Description

The MemberSlot option indicates that space has been reserved within each member that allows it to contain a link directly to its position in the enumeration for a collection. If such space has been reserved, special messages can be used that rapidly position an index directly to the member. Operations to remove members are also much faster.

The value of MemberSlot specifies the offset in bytes from the start of each member where the space for its position link has been reserved.

The offset of the position link from the start of a member may be either positive or negative, in the range of -2048 to +2047. The default value of MemberSlot is UnknownOffset (a large negative value), which specifies that no slot for an internal position link is available within each member.

## Protocols adopted by MemberSlot

None

## Methods

None

## Typedefs

- dupmember_t

      struct { void *memberData[2]; id owner; }

- member_t

      struct memberData { void *memberData[2]; }

Prev | Home | Next
MemberBlock | Up | Offsets