Read() public method

public Read ( Plasma.hsStream s ) : void
s Plasma.hsStream
return void
Exemplo n.º 1
0
        public void Read(hsStream s)
        {
            short count = s.ReadShort();
            fDescriptors.Capacity = (int)count; // Optimization

            try {
                for (short i = 0; i < count; i++) {
                    plStateDescriptor desc = new plStateDescriptor();
                    desc.Read(s);
                    fDescriptors.Add(desc);
                }
            } catch (Exception e) {
                throw new plSDLException("Failed to read State Descriptors", e);
            }
        }