mirror of
https://github.com/jwetzell/osc-js.git
synced 2026-08-10 01:33:42 +00:00
fix bundle minimum size check
This commit is contained in:
@@ -3,7 +3,7 @@ import { OSCBundle } from './models';
|
||||
import { oscTypeConverterMap } from './osc-types';
|
||||
|
||||
export function bundleFromBuffer(bytes: Uint8Array): [OSCBundle | undefined, Uint8Array | undefined] {
|
||||
if (bytes.length < 8) {
|
||||
if (bytes.length < 20) {
|
||||
throw new Error('bundle has to be at least 20 bytes');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user