public int PutDouble(double var) { int prevIndex = WrittenBytes; Write(BitConverter.GetBytes(var)); return prevIndex; }