Skip to content

Commit 553868f

Browse files
committed
Document
1 parent b0785ee commit 553868f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Data/ArrayBuffer/Serializer.purs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,19 @@ putter n f v s = do
1818

1919
putInt8 :: Int8 -> Serializer -> Eff (writer :: DV.Writer) Serializer
2020
putInt8 = putter 1 DV.setInt8
21+
putInt16 :: Int16 -> Serializer -> Eff (writer :: DV.Writer) Serializer
2122
putInt16 = putter 2 DV.setInt16
23+
putInt32 :: Int32 -> Serializer -> Eff (writer :: DV.Writer) Serializer
2224
putInt32 = putter 4 DV.setInt32
25+
putUint8 :: Uint8 -> Serializer -> Eff (writer :: DV.Writer) Serializer
2326
putUint8 = putter 1 DV.setUint8
27+
putUint16 :: Uint16 -> Serializer -> Eff (writer :: DV.Writer) Serializer
2428
putUint16 = putter 2 DV.setUint16
29+
putUint32 :: Uint32 -> Serializer -> Eff (writer :: DV.Writer) Serializer
2530
putUint32 = putter 4 DV.setUint32
31+
putFloat32 :: Float32 -> Serializer -> Eff (writer :: DV.Writer) Serializer
2632
putFloat32 = putter 4 DV.setFloat32
33+
putFloat64 :: Float64 -> Serializer -> Eff (writer :: DV.Writer) Serializer
2734
putFloat64 = putter 8 DV.setFloat64
2835

2936
mapDataView :: forall e. ByteLength -> Serializer -> Eff (writer :: DV.Writer | e) (Maybe DV.DataView)

0 commit comments

Comments
 (0)