     /// Create a `ByteBuffer` from the given `ByteBufferView`s range.
     ///
     /// - parameter view: The `ByteBufferView` which you want to get a `ByteBuffer` from.
+    @inlinable
     public init(_ view: ByteBufferView) {
         self = view._buffer.getSlice(at: view.startIndex, length: view.count)!
     }


extension ByteBufferView: RangeReplaceableCollection {
    // required by `RangeReplaceableCollection`
    public init() {
        self = ByteBufferView(ByteBuffer())
    }

        }
    }

    @inlinable
    public func _customIndexOfEquatableElement(_ element : Element) -> Index?? {
        return .some(self.withUnsafeBytes { ptr -> Index? in
            return ptr.firstIndex(of: element).map { $0 + self._range.lowerBound }
        })
    }

    @inlinable
    public func _customLastIndexOfEquatableElement(_ element: Element) -> Index?? {
        return .some(self.withUnsafeBytes { ptr -> Index? in
            return ptr.lastIndex(of: element).map { $0 + self._range.lowerBound }
