val heartbeatMode_validator:LL.validator heartbeatMode_parser
val heartbeatMode_validator:LL.validator heartbeatMode_parser
let heartbeatMode_validator: LL.validator heartbeatMode_parser = LL.validate_total_constant_size heartbeatMode_parser 1uL ()
module MiTLS.Parsers.HeartbeatMode

(* 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 heartbeatMode_repr = U8.t
inline_for_extraction let heartbeatMode_repr_eq (x1 x2: heartbeatMode_repr) : Tot bool = (x1 = x2)
let known_heartbeatMode_repr (v:U8.t) : bool = v `heartbeatMode_repr_eq` 1z || (v `heartbeatMode_repr_eq` 2z || (false))

type heartbeatMode =
  | Peer_allowed_to_send
  | Peer_not_allowed_to_send
  | Unknown_heartbeatMode of (v:U8.t{not (known_heartbeatMode_repr v)})

let string_of_heartbeatMode = function
  | Peer_allowed_to_send -> "peer_allowed_to_send"
  | Peer_not_allowed_to_send -> "peer_not_allowed_to_send"
  | Unknown_heartbeatMode _ -> "Unknown_heartbeatMode"

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

noextract val heartbeatMode_parser: LP.parser heartbeatMode_parser_kind heartbeatMode

noextract val heartbeatMode_serializer: LP.serializer heartbeatMode_parser

noextract val heartbeatMode_bytesize (x:heartbeatMode) : GTot nat

noextract val heartbeatMode_bytesize_eq (x:heartbeatMode) : Lemma (heartbeatMode_bytesize x == Seq.length (LP.serialize heartbeatMode_serializer x))

val heartbeatMode_parser32: LS.parser32 heartbeatMode_parser

val heartbeatMode_serializer32: LS.serializer32 heartbeatMode_serializer

val heartbeatMode_size32: LSZ.size32 heartbeatMode_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.HeartbeatMode.fsti
LowParse.Low.Base.validator MiTLS.Parsers.HeartbeatMode.heartbeatMode_parser
LowParse.Low.Base.validate_total_constant_size MiTLS.Parsers.HeartbeatMode.heartbeatMode_parser_kind MiTLS.Parsers.HeartbeatMode.heartbeatMode MiTLS.Parsers.HeartbeatMode.heartbeatMode_parser FStar.UInt64.__uint_to_t
let heartbeatMode_validator:LL.validator heartbeatMode_parser =
  
LL.validate_total_constant_size heartbeatMode_parser 1uL ()