Skip to content

Commit df4d0f0

Browse files
author
H.Merijn Brand
committed
Note on Buf vs Blob (from IRC)
1 parent 31c63af commit df4d0f0

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Notes

-2
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,3 @@ $ p6 -e'int.Range.max.say'
3333
9223372036854775807
3434

3535
• attribute defaults are ignored when the class has submethod BUILD
36-
37-

TODO

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
• PASS more tests
22

3-
Buf vs Str - binary data (+ tests)
3+
• Str/Buf/Blob - binary data (+ tests)
44

5-
Current thought: remove the meaning of "binary" as currently is
5+
Current thought: remove the meaning of "binary" as currently is
66
implemented, as everything is valid Str already.
77

8-
Add binary support by allowing *real* binary (images, raw data)
9-
by adding a Buf entry in CSV::Field and use that instead of the
8+
Add binary support by allowing *real* binary (images, raw data)
9+
by adding a Blob entry in CSV::Field and use that instead of the
1010
current Str $.text by using CATCH blocks.
1111

1212
When fetching the field, check if Buf is set and return that (if
1313
possible)
1414

15+
Str = String of characters
16+
Buf = Mutable buffer for binary data
17+
Blob = Common interface for binary large objects
18+
1519
• csv () function
1620

1721
• Documentation

0 commit comments

Comments
 (0)