     }
 
     /// Creates a `ByteBufferView` from the readable bytes of the given `buffer`.
+    @inlinable
     public init(_ buffer: ByteBuffer) {
         self = ByteBufferView(buffer: buffer, range: buffer.readerIndex ..< buffer.writerIndex)
     }
 
+    @inlinable
     public func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R {
         return try self._buffer.withVeryUnsafeBytes { ptr in
             try body(UnsafeRawBufferPointer(start: ptr.baseAddress!.advanced(by: self._range.lowerBound),


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

        }
    }

    @inlinable
    public subscript(range: Range<Index>) -> ByteBufferView {
        get {
            return ByteBufferView(buffer: self._buffer, range: range)
