public ArraySizeSerializer(ArraySizeType arraySizeType) { this.arraySizeType = arraySizeType; switch (this.arraySizeType) { case ArraySizeType.Byte: this.type = typeof(byte); break; case ArraySizeType.Int16: this.type = typeof(short); break; case ArraySizeType.Int32: this.type = typeof(int); break; case ArraySizeType.X3F1: this.type = typeof(int); break; case ArraySizeType.NullTerminated: this.type = null; break; } }
public MemberOptions( Type type, bool isFixedSize, int fixedSizeLength, ArraySizeType serializeSize, int padAfter, int padBefore, AoUsesFlagsAttribute[] usesFlagsAttributes) { this.type = type; this.isFixedSize = isFixedSize; this.fixedSizeLength = fixedSizeLength; this.serializeSize = serializeSize; this.padAfter = padAfter; this.padBefore = padBefore; this.usesFlagsAttributes = usesFlagsAttributes; }