val as_down_buffer (#b:Type) (v:buffer b) : Down.buffer (buffer_src v)
let as_down_buffer #b bv = Buffer?.down_buf bv
val as_down_buffer (#b:Type) (v:buffer b) : Down.buffer (buffer_src v)
let as_down_buffer #b bv =
Buffer?.down_buf bv
LowStar.BufferView.Up.fst.checked
prims.fst.checked LowStar.BufferView.Down.fsti.checked FStar.Seq.fst.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked FStar.Mul.fst.checked FStar.Math.Lemmas.fst.checked
LowStar.BufferView.Up.fst
LowStar.BufferView.Up.buffer LowStar.BufferView.Up.__proj__Buffer__item__down_buf LowStar.BufferView.Down.buffer LowStar.BufferView.Up.buffer_src
(*
   Copyright 2008-2018 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.BufferView.Up
module Down = LowStar.BufferView.Down 

noeq
type buffer (dest:Type0) : Type u#1 =
  | Buffer: src:Type0
          -> down_buf:Down.buffer src
          -> v:view src dest{Down.length down_buf % View?.n v == 0}
          -> buffer dest

let mk_buffer #src #dest down_buf v = Buffer src down_buf v
val as_down_buffer (#b:Type) (v:buffer b) : Down.buffer (buffer_src v)
v: LowStar.BufferView.Up.buffer b
  -> LowStar.BufferView.Down.buffer (LowStar.BufferView.Up.buffer_src v)