IntCollection: an indexabled, packed numeric data type for storing very small numbers inside very large ones.
[VOID.git] / IntCollection.cs
blob:a/IntCollection.cs -> blob:b/IntCollection.cs
--- a/IntCollection.cs
+++ b/IntCollection.cs
@@ -22,7 +22,7 @@
 
 namespace VOID
 {
-	public class IntCollection : IVOID_SaveValue
+	public class IntCollection
 	{
 		public static implicit operator long(IntCollection c)
 		{
@@ -34,14 +34,6 @@
 		public long collection { get; protected set; }
 		public ushort maxCount { get; protected set; }
 		public ushort wordLength { get; protected set; }
-
-		public Type type { get { return typeof(long); } }
-		public object AsType { get { return this.collection; } }
-
-		public void SetValue(object v)
-		{
-			this.collection = (long)v;
-		}
 
 		public IntCollection (ushort wordLength = 4, long initialCollection = 0)
 		{
@@ -67,7 +59,6 @@
 				return (ushort)((this.collection & (this.mask << idx)) >> idx);
 			}
 			set {
-				Console.WriteLine (value);
 				if (idx < 0) {
 					idx += this.maxCount;
 				}
@@ -79,7 +70,6 @@
 				idx *= wordLength;
 
 				long packvalue = value & this.mask;
-				Console.WriteLine (packvalue);
 
 				this.collection &= ~(this.mask << idx);
 				this.collection |= packvalue << idx;