val of_buffer (b:B.buffer 'a)
  : Pure (const_buffer 'a)
    (requires True)
    (ensures fun c ->
      let c = as_qbuf c in
      qbuf_qual c == MUTABLE /\
      qbuf_mbuf c == b)
let of_buffer b = (| MUTABLE, b |)
val of_buffer (b:B.buffer 'a)
  : Pure (const_buffer 'a)
    (requires True)
    (ensures fun c ->
      let c = as_qbuf c in
      qbuf_qual c == MUTABLE /\
      qbuf_mbuf c == b)
let of_buffer b =
(| MUTABLE, b |)
LowStar.ConstBuffer.fst.checked
prims.fst.checked LowStar.ImmutableBuffer.fst.checked LowStar.Buffer.fst.checked FStar.UInt32.fsti.checked FStar.Seq.fst.checked FStar.Pervasives.fsti.checked FStar.HyperStack.ST.fsti.checked FStar.HyperStack.fst.checked
LowStar.ConstBuffer.fst
LowStar.Buffer.buffer Prims.Mkdtuple2 LowStar.ConstBuffer.qual LowStar.ConstBuffer.qbuf_cases LowStar.ConstBuffer.MUTABLE LowStar.ConstBuffer.const_buffer
(*
   Copyright 2008-2019 Microsoft Research

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*)
module LowStar.ConstBuffer

module U32 = FStar.UInt32
module Seq = FStar.Seq

module HS = FStar.HyperStack
open FStar.HyperStack.ST

module I = LowStar.ImmutableBuffer
module B = LowStar.Buffer

let const_buffer a = qbuf a

let as_qbuf c = c
val of_buffer (b:B.buffer 'a)
  : Pure (const_buffer 'a)
    (requires True)
    (ensures fun c ->
      let c = as_qbuf c in
      qbuf_qual c == MUTABLE /\
      qbuf_mbuf c == b)
b: LowStar.Buffer.buffer 'a -> Prims.Pure (LowStar.ConstBuffer.const_buffer 'a)