public override void WriteDataToBuffer(BufferChunk buffer)
{
// TODO - we don't scale well, because we write every property, every time
// Colin's book recommends Name 7/8 times, and alternating the others (1/8)
// CName is a given of course JVE
// Well-known properties
for (int id = (int)SDESType.CNAME; id <= (int)SDESType.NOTE; id++)
{
WritePropertyToBuffer((SDESType)id, data[id], buffer);
}
// Write private properties
foreach (DictionaryEntry de in privs)
{
WritePrivatePropertyToBuffer((byte[])de.Key, (byte[])de.Value, buffer);
}
// Indicate the list is finished
buffer += (byte)SDESType.END;
}