val compressionMethod_validator:LL.validator compressionMethod_parser
val compressionMethod_validator:LL.validator compressionMethod_parser
let compressionMethod_validator: LL.validator compressionMethod_parser = LL.validate_total_constant_size compressionMethod_parser 1uL ()
module MiTLS.Parsers.CompressionMethod

(* This file has been automatically generated by EverParse. *)
open FStar.Bytes
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module LP = LowParse.Spec.Base
module LS = LowParse.SLow.Base
module LSZ = LowParse.SLow.Base
module LPI = LowParse.Spec.AllIntegers
module LL = LowParse.Low.Base
module L = FStar.List.Tot
module B = LowStar.Buffer
module BY = FStar.Bytes
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST


let compressionMethod_repr = U8.t
inline_for_extraction let compressionMethod_repr_eq (x1 x2: compressionMethod_repr) : Tot bool = (x1 = x2)
let known_compressionMethod_repr (v:U8.t) : bool = v `compressionMethod_repr_eq` 0z || (false)

type compressionMethod =
  | NullCompression
  | Unknown_compressionMethod of (v:U8.t{not (known_compressionMethod_repr v)})

let string_of_compressionMethod = function
  | NullCompression -> "nullCompression"
  | Unknown_compressionMethod _ -> "Unknown_compressionMethod"

inline_for_extraction noextract let compressionMethod_parser_kind = LP.strong_parser_kind 1 1 (Some LP.ParserKindMetadataTotal)

noextract val compressionMethod_parser: LP.parser compressionMethod_parser_kind compressionMethod

noextract val compressionMethod_serializer: LP.serializer compressionMethod_parser

noextract val compressionMethod_bytesize (x:compressionMethod) : GTot nat

noextract val compressionMethod_bytesize_eq (x:compressionMethod) : Lemma (compressionMethod_bytesize x == Seq.length (LP.serialize compressionMethod_serializer x))

val compressionMethod_parser32: LS.parser32 compressionMethod_parser

val compressionMethod_serializer32: LS.serializer32 compressionMethod_serializer

val compressionMethod_size32: LSZ.size32 compressionMethod_serializer
/
prims.fst.checked LowStar.Buffer.fst.checked LowParse.Spec.Base.fsti.checked LowParse.Spec.AllIntegers.fst.checked LowParse.SLow.Base.fst.checked LowParse.Low.Base.fst.checked FStar.UInt8.fsti.checked FStar.UInt64.fsti.checked FStar.UInt32.fsti.checked FStar.UInt16.fsti.checked FStar.Seq.fst.checked FStar.Pervasives.fsti.checked FStar.List.Tot.fst.checked FStar.HyperStack.ST.fsti.checked FStar.HyperStack.fst.checked FStar.Bytes.fsti.checked
MiTLS.Parsers.CompressionMethod.fsti
LowParse.Low.Base.validator MiTLS.Parsers.CompressionMethod.compressionMethod_parser
LowParse.Low.Base.validate_total_constant_size MiTLS.Parsers.CompressionMethod.compressionMethod_parser_kind MiTLS.Parsers.CompressionMethod.compressionMethod MiTLS.Parsers.CompressionMethod.compressionMethod_parser FStar.UInt64.__uint_to_t
let compressionMethod_validator:LL.validator compressionMethod_parser =
  
LL.validate_total_constant_size compressionMethod_parser 1uL ()