     
     public var asData: Data {
         var littleEndian = self.littleEndian
-        return Data(buffer: UnsafeBufferPointer(start: &littleEndian, count: 1))
+        return Data(bytes: &littleEndian, count: MemoryLayout<Self>.size)
     }
     
 }

    }

    public var asData: Data {
        var littleEndian = bitPattern.littleEndian
        return Data(buffer: UnsafeBufferPointer(start: &littleEndian, count: 1))
    }
    
}

    }

    public var asData: Data {
        return bitPattern.littleEndian.asData
    }
    
}
