deprecation(io/unstable): deprecate readShort() (#6008)

This commit is contained in:
Asher Gomez 2024-09-18 19:40:38 +10:00 committed by GitHub
parent e1c8d24144
commit b32c6eb68e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,7 @@ import type { BufReader } from "./buf_reader.ts";
* @param buf The reader to read from
* @returns The 16bit short
*
* @deprecated This will be removed in 1.0.0. Use the {@link https://developer.mozilla.org/en-US/docs/Web/API/Streams_API | Web Streams API} instead.
* @deprecated This will be removed in 0.226.0.
*/
export async function readShort(buf: BufReader): Promise<number | null> {
const high = await buf.readByte();