Skip to content

Commit aa8bab5

Browse files
committed
Update packet creation to require a size parameter
1 parent 1003623 commit aa8bab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/Packet.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ export interface Packet {
7777

7878
/**
7979
* Packets for decoding can be created without reading them from a demuxer
80-
* Set parameters as required from the Packet object
80+
* Set parameters as required from the Packet object, passing in a buffer and the required size in bytes
8181
*/
82-
export function packet(options: { [key: string]: any, data: Buffer }): Packet
82+
export function packet(options: { [key: string]: any, data: Buffer, size: number }): Packet

0 commit comments

Comments
 (0)