Idris2Doc : System.Posix.File.ReadRes

System.Posix.File.ReadRes

(source)

Reexports

importpublic Control.Monad.Resource
importpublic Data.Buffer
importpublic Data.Buffer.Core
importpublic Data.ByteString
importpublic Data.C.Ptr
importpublic System.Posix.Errno

Definitions

dataReadRes : Type->Type
  Result of a (potentially non-blocking) read, typically from a pipe
or socket.

Totality: total
Visibility: public export
Constructors:
Interrupted : ReadResa
  The system call was interrupted by a signal.
NoData : ReadResa
  There is currently no data avialable (this will only be a possible
outcome when reading in non-blocking mode).
Closed : ReadResa
  Tried to read from a closed connection or pipe.
EOI : ReadResa
  We reached the end of input.
Res : a->ReadResa
  We got `n` bytes of data.

Hints:
Eq{arg:6194}=>Eq (ReadRes{arg:6194})
FoldableReadRes
FunctorReadRes
Show{arg:6194}=>Show (ReadRes{arg:6194})
TraversableReadRes
fromErr : Errno->EPrim (ReadResa)
Totality: total
Visibility: export
recordCPtr : Type
Totality: total
Visibility: public export
Constructor: 
CP : Bits32->AnyPtr->CPtr

Projections:
.ptr : CPtr->AnyPtr
.size : CPtr->Bits32

Hints:
FromBufCPtr
FromPtrCPtr
ELift1Worldf=>ResourcefCPtr
ToBufCPtr
.size : CPtr->Bits32
Totality: total
Visibility: public export
size : CPtr->Bits32
Totality: total
Visibility: public export
.ptr : CPtr->AnyPtr
Totality: total
Visibility: public export
ptr : CPtr->AnyPtr
Totality: total
Visibility: public export
cptrOf1 : (0a : Type) ->SizeOfa=>Nat->F1WorldCPtr
Totality: total
Visibility: export
cptrOf : HasIOio=> (0a : Type) ->SizeOfa=>Nat->ioCPtr
Totality: total
Visibility: export
cptr1 : Nat->F1WorldCPtr
Totality: total
Visibility: export
cptr : HasIOio=>Nat->ioCPtr
Totality: total
Visibility: export
freePtr1 : CPtr->F1'World
Totality: total
Visibility: export
freePtr : HasIOio=>CPtr->io ()
Totality: total
Visibility: export
recordBuf : Type
Totality: total
Visibility: public export
Constructor: 
B : Bits32->Buffer->Buf

Projections:
.buf : Buf->Buffer
.size : Buf->Bits32

Hint: 
FromBufBuf
.size : Buf->Bits32
Totality: total
Visibility: public export
size : Buf->Bits32
Totality: total
Visibility: public export
.buf : Buf->Buffer
Totality: total
Visibility: public export
buf : Buf->Buffer
Totality: total
Visibility: public export
buf : Bits32->F1WorldBuf
Totality: total
Visibility: export
interfaceFromBuf : Type->Type
  Interface for wrapping or converting a freshly allocated buffer
for reading, or an already allocated C-pointer for streaming
data (typically from a file descriptor).

Please note that not all conversions are guaranteed to be
lossless. For instance, converting a buffer to a (UTF-8) string
will only be safe if the byte array does not end in the middle of
a codepoint consisting of several bytes.

Parameters: a
Methods:
fromBuf : Buf->F1Worlda

Implementations:
FromBufBuf
FromBufEMBuffer
FromBufEBuffer
FromBufByteString
FromBufString
FromBufCPtr
SizeOfa=>FromBuf (ECArrayIOa)
Convertt=>FromBuf (Listt)
fromBuf : FromBufa=>Buf->F1Worlda
Totality: total
Visibility: public export
0EMBuffer : Type
Totality: total
Visibility: public export
0EBuffer : Type
Totality: total
Visibility: public export
0ECArrayIO : Type->Type
Totality: total
Visibility: public export
interfaceToBuf : Type->Type
  Interface for converting a value for writing.

We distinguis between three situations:

a) The value is converted to a `ByteString`. In this case
the value can be directly written and the runtime will take
care of collecting its memory.

b) The value is converted to a `CPtr`, which has been allocated
elsewhere. We are not responsible for freeing the pointer as
it might be reused for streaming.

Parameters: a
Methods:
unsafeToBuf : a->EitherCPtrByteString

Implementations:
ToBufByteString
ToBufString
ToBuf (IBuffern)
ToBuf (MBuffertn)
ToBufCPtr
SizeOfa=>ToBuf (CArraytna)
SizeOfa=>ToBuf (ECArrayIOa)
SizeOfa=>SetPtra=>ToBuf (Vectna)
SizeOfa=>SetPtra=>ToBuf (Lista)
unsafeToBuf : ToBufa=>a->EitherCPtrByteString
Totality: total
Visibility: public export
recordConvert : Type->Type
Totality: total
Visibility: public export
Constructor: 
C : (0source : Type) ->SizeOfsource=>Derefsource=> (source->F1Worldt) ->Convertt

Projections:
.convert : ({rec:0} : Convertt) ->source{rec:0}->F1Worldt
.derf : ({rec:0} : Convertt) ->Deref (source{rec:0})
.sof : ({rec:0} : Convertt) ->SizeOf (source{rec:0})
0.source : Convertt->Type

Hints:
Convertt=>FromBuf (Listt)
Convertt=>FromPtr (Listt)
0.source : Convertt->Type
Totality: total
Visibility: public export
0source : Convertt->Type
Totality: total
Visibility: public export
.sof : ({rec:0} : Convertt) ->SizeOf (source{rec:0})
Totality: total
Visibility: public export
sof : ({rec:0} : Convertt) ->SizeOf (source{rec:0})
Totality: total
Visibility: public export
.derf : ({rec:0} : Convertt) ->Deref (source{rec:0})
Totality: total
Visibility: public export
derf : ({rec:0} : Convertt) ->Deref (source{rec:0})
Totality: total
Visibility: public export
.convert : ({rec:0} : Convertt) ->source{rec:0}->F1Worldt
Totality: total
Visibility: public export
convert : ({rec:0} : Convertt) ->source{rec:0}->F1Worldt
Totality: total
Visibility: public export
convStruct : (0f : (Type->Type)) ->Structf=>SizeOf (fWorld) => (fWorld->F1Worldt) ->Convertt
Totality: total
Visibility: public export
interfaceFromPtr : Type->Type
  Interface for wrapping or converting a c-land pointer.

This is useful for streaming data from a file descriptor.
Idris (garbage collected) values are generated by copying the given
number of bytes.

Please note that not all conversions are guaranteed to be
lossless. For instance, converting a buffer to a (UTF-8) string
will only be safe if the byte array does not end in the middle of
a codepoint consisting of several bytes.

Parameters: a
Methods:
fromPtr : CPtr->F1Worlda

Implementations:
FromPtrCPtr
SizeOfa=>FromPtr (ECArrayIOa)
FromPtrEBuffer
FromPtrEMBuffer
FromPtrByteString
FromPtrString
Convertt=>FromPtr (Listt)
SizeOfa=>Derefa=>FromPtr (Lista)
fromPtr : FromPtra=>CPtr->F1Worlda
Totality: total
Visibility: public export
viaPtrFromBuf : FromPtrr=>Buf->F1Worldr
Totality: total
Visibility: export