| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- //
- // System.Collections.Specialized.BitVector32.cs
- //
- // Author:
- // Miguel de Icaza ([email protected])
- //
- // (C) Ximian, Inc. http://www.ximian.com
- //
- namespace System.Collections.Specialized {
-
- public struct BitVector32 {
- int value;
- public struct Section {
- public short maxval;
- }
- public static Section CreateSection (short maxval)
- {
- Section s = new Section();
- // FIXME: Imeplemtn me
- return s;
- }
-
- public static int CreateMask ()
- {
- return 1;
- }
- public static int CreateMask (int prev)
- {
- return prev << 1;
- }
-
- public BitVector32 (BitVector32 source)
- {
- value = source.value;
- }
- public BitVector32 (int init)
- {
- value = init;
- }
- public override bool Equals (object o)
- {
- if (!(o is BitVector32))
- return false;
- return value == ((BitVector32) o).value;
- }
- public override int GetHashCode ()
- {
- return 0;
- }
-
- public int Data {
- get {
- return value;
- }
- }
- }
- }
|