Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factor out IPythonBuffer from IBufferProtocol #808

Merged
merged 38 commits into from
May 22, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
9b28c32
Factor out IPythonBuffer from IBufferProtocol
BCSharp Apr 27, 2020
c7a3d66
Remove IPythonBuffer.SetSlice(...)
BCSharp Apr 29, 2020
c16769a
Introduce IPythonBuffer.AsSpan()/AsReadOnlySpan()
BCSharp Apr 30, 2020
5965bd2
Redesign MemoryView
BCSharp May 6, 2020
fd07f00
Merge remote-tracking branch 'ironpython3/master' into buffer_protocol
BCSharp May 6, 2020
4df9e7f
Fix compile errors in re
BCSharp May 6, 2020
f9bd595
Move IPythonBuffer from Bytes to BytesView
BCSharp May 6, 2020
613735f
Properly dispose IPythonBuffer created during conversion to BytesLike
BCSharp May 6, 2020
7282c9c
Add ArrayDataView
slozier May 7, 2020
87e55b6
Synchronise disposal of ArrayDataView
BCSharp May 8, 2020
ebe9e6a
Support optional byteorder mark in memoryview casts
BCSharp May 9, 2020
02c42c7
Thread-safe buffer export management of ArrayData
BCSharp May 10, 2020
28488f3
Fix bytearray extended slice assignment
BCSharp May 10, 2020
8c1e57d
Add/enable some bytearray tests
BCSharp May 10, 2020
a0da749
Workaround for HTTPResponse.client.readinto
BCSharp May 10, 2020
28fec90
Merge remote-tracking branch 'ironpython3/master' into buffer_protocol
BCSharp May 10, 2020
4b59a9c
Support conversion from Memory/ReadOnlyMemory to IBufferProtocol
BCSharp May 12, 2020
fea55d8
Merge remote-tracking branch 'ironpython3/master' into buffer_protocol
BCSharp May 12, 2020
c2c63af
Use IBufferProtocol in BytesIO
slozier May 12, 2020
8988491
Convert [BytesLike]ReadOnlyMemory<byte> to IBufferProtocol
BCSharp May 15, 2020
ea91608
Accept byte[] in BytesIO.writelines
slozier May 15, 2020
b5bab39
Adjust rich comparisons in memoryview
slozier May 15, 2020
bbb2457
Merge branch 'master' into buffer_protocol
slozier May 15, 2020
d1ab07c
Fix compile errors
slozier May 15, 2020
78093d6
Remove obsolete code
BCSharp May 16, 2020
533255b
Remove IPythonBuffer.ToBytes(int, int?)
BCSharp May 16, 2020
de4b45c
Finish implementing support for unformatted MemoryView exports
BCSharp May 17, 2020
5a6cc1a
Increase test coverage of codecs and fix bugs
BCSharp May 17, 2020
ee0cff3
Optimize _codecs.escape_encode
BCSharp May 18, 2020
61ffbdd
Let array.array use ArrayDataView
BCSharp May 19, 2020
39a497a
Eliminate some of switches on typecode in array.array
BCSharp May 19, 2020
a73fa3e
Make ArrayData field in ByteArray readonly
BCSharp May 20, 2020
6a6841d
Prevent overflow bugs of ArrayData size
BCSharp May 20, 2020
3611b2e
Implement a finalizer in MemoryView
BCSharp May 20, 2020
a66f5b9
Merge branch 'master' into buffer_protocol
slozier May 21, 2020
589cc93
Enable test_array buffer test
slozier May 21, 2020
7a29b5a
Replace Marshal.SizeOf with Unsafe.SizeOf
slozier May 21, 2020
824fefe
Update after review
BCSharp May 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Src/IronPython/Runtime/IBufferProtocol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public enum BufferFlags {
/// <summary>
/// The consumer expects the item format to be reported and is prepared to deal with items that are more complex than a byte.
/// </summary>
/// <remarks>
/// If format is requested, the consumer must also indicate preparedness to handle shape (<see cref="ND"/> flag set).
/// </remarks>
Format = 0x0004,

/// <summary>
Expand Down
Loading