/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Bytes, toHex } from "#general";
import { BitField, ByteArrayBitmapSchema } from "./BitmapSchema.js";
const SpecificationVersionSchema = ByteArrayBitmapSchema({
  major: BitField(0, 8),
  minor: BitField(8, 8),
  patch: BitField(16, 8),
  reserved: BitField(24, 8)
});
var SpecificationVersion;
((SpecificationVersion2) => {
  SpecificationVersion2.encode = (version) => parseInt(Bytes.toHex(SpecificationVersionSchema.encode({ ...version, reserved: 0 })), 16);
  SpecificationVersion2.decode = (version) => SpecificationVersionSchema.decode(Bytes.fromHex(toHex(version)));
})(SpecificationVersion || (SpecificationVersion = {}));
export {
  SpecificationVersion
};
//# sourceMappingURL=SpecificationVersionSchema.js.map
