Merge pull request #26 from jwetzell/bundle-min-size

fix bundle minimum size check
This commit is contained in:
2024-10-15 21:48:08 -05:00
committed by GitHub
+1 -1
View File
@@ -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');
}