public RawSerializer(Type targetType, bool useFixedBufferSize) { this.mTargetType = targetType; this.mObjectSize = RawSerializer.GetObjectSize(this.mTargetType); this.UsingFixedSize = useFixedBufferSize; }
public SerializableAttribute(Type type) { this.objectSize = RawSerializer.GetObjectSize(type); }
public static int GetObjectSize(Type type) { return(RawSerializer.GetObjectSize(type, null)); }