val mk_buffer_view (#src:Type0) (#rrel #rel:B.srel src) (#dest:Type)
                   (b:B.mbuffer src rrel rel)
                   (v:view src dest{
                     length b % View?.n v == 0
                   })
   : GTot (buffer dest)
let mk_buffer_view #src #rrel #rel #dest b v  = (| src, rrel, rel, BufferView b v |)
val mk_buffer_view (#src:Type0) (#rrel #rel:B.srel src) (#dest:Type)
                   (b:B.mbuffer src rrel rel)
                   (v:view src dest{
                     length b % View?.n v == 0
                   })
   : GTot (buffer dest)
let mk_buffer_view #src #rrel #rel #dest b v =
(| src, rrel, rel, BufferView b v |)
LowStar.BufferView.fst.checked
prims.fst.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.fst
LowStar.Monotonic.Buffer.srel LowStar.Monotonic.Buffer.mbuffer LowStar.BufferView.view Prims.eq2 Prims.int Prims.op_Modulus LowStar.Monotonic.Buffer.length LowStar.BufferView.__proj__View__item__n FStar.Pervasives.Mkdtuple4 LowStar.BufferView.buffer_view LowStar.BufferView.BufferView LowStar.BufferView.buffer
(*
   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

noeq
type buffer_view (a:Type0) (rrel rel:B.srel a) (b:Type u#b) : Type u#b =
  | BufferView: buf:B.mbuffer a rrel rel
              -> v:view a b{B.length buf % View?.n v == 0}
              -> buffer_view a rrel rel b
val mk_buffer_view (#src:Type0) (#rrel #rel:B.srel src) (#dest:Type)
                   (b:B.mbuffer src rrel rel)
                   (v:view src dest{
                     length b % View?.n v == 0
                   })
   : GTot (buffer dest)

    b: LowStar.Monotonic.Buffer.mbuffer src rrel rel ->
    v: LowStar.BufferView.view src dest {LowStar.Monotonic.Buffer.length b % View?.n v == 0}
  -> Prims.GTot (LowStar.BufferView.buffer dest)