Commit 54fffb96 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Refix docs for sizeofByteArray#/sizeofMutableByteArray# (#3800)

parent 606452f9
...@@ -633,8 +633,8 @@ primop UnsafeThawArrayOp "unsafeThawArray#" GenPrimOp ...@@ -633,8 +633,8 @@ primop UnsafeThawArrayOp "unsafeThawArray#" GenPrimOp
section "Byte Arrays" section "Byte Arrays"
{Operations on {\tt ByteArray\#}. A {\tt ByteArray\#} is a just a region of {Operations on {\tt ByteArray\#}. A {\tt ByteArray\#} is a just a region of
raw memory in the garbage-collected heap, which is not raw memory in the garbage-collected heap, which is not
scanned for pointers. It carries its own size (in bytes, scanned for pointers. It carries its own size (in bytes).
rounded up to the nearest multiple of a word). There are There are
three sets of operations for accessing byte array contents: three sets of operations for accessing byte array contents:
index for reading from immutable byte arrays, and read/write index for reading from immutable byte arrays, and read/write
for mutable byte arrays. Each set contains operations for a for mutable byte arrays. Each set contains operations for a
...@@ -682,13 +682,11 @@ primop UnsafeFreezeByteArrayOp "unsafeFreezeByteArray#" GenPrimOp ...@@ -682,13 +682,11 @@ primop UnsafeFreezeByteArrayOp "unsafeFreezeByteArray#" GenPrimOp
primop SizeofByteArrayOp "sizeofByteArray#" GenPrimOp primop SizeofByteArrayOp "sizeofByteArray#" GenPrimOp
ByteArray# -> Int# ByteArray# -> Int#
{Return the size of the array in bytes, rounded up to the nearest multiple {Return the size of the array in bytes.}
of a word.}
primop SizeofMutableByteArrayOp "sizeofMutableByteArray#" GenPrimOp primop SizeofMutableByteArrayOp "sizeofMutableByteArray#" GenPrimOp
MutableByteArray# s -> Int# MutableByteArray# s -> Int#
{Return the size of the array in bytes, rounded up to the nearest multiple {Return the size of the array in bytes.}
of a word.}
primop IndexByteArrayOp_Char "indexCharArray#" GenPrimOp primop IndexByteArrayOp_Char "indexCharArray#" GenPrimOp
ByteArray# -> Int# -> Char# ByteArray# -> Int# -> Char#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment