 
 extension ReadableStream {
     /// convenenience for not requiring a buffer to be passed
-    @available(*, deprecated)
     public func read(max: Int) throws -> Bytes {
         var buffer = Bytes(repeating: 0, count: max)
         let receivedCount = try read(max: max, into: &buffer)


    /// Reads all bytes from the stream using
    /// a chunk size.
    @available(*, deprecated)
    public func readAll(chunkSize: Int = 512) throws -> Bytes {
        var lastSize = 0
        var bytes: Bytes = []

    /// byte array from the stream and returns the first.
    ///
    /// This can be overridden with something more performant.
    public func readByte() throws -> Byte? {
        return try read(max: 1).first
    }
