storj/lib/uplinkc
Egon Elbre fdd86d17ac lib/uplinkc: use SliceHeader instead of [1<<30]
Conversions such as will be invalid with Go 1.14

    (*[1<<30]byte)(unsafe.Pointer(data))

The recommended way is to use:

    *(*[]byte)(unsafe.Pointer(
        &reflect.SliceHeader{
            Data: uintptr(unsafe.Pointer(data)),
            Len: int(length),
            Cap: int(length),
        },
    ))

Also fixed a memory leak.

Change-Id: I1768b7b85505e6b57b49deb62a510474f1bf84c1
2019-12-13 16:49:41 +00:00
..
testdata uplinkc: add download_range function (#3704) 2019-12-10 03:51:56 -08:00
access_scope.go uplinkc: add more functions to manage Scope (#3694) 2019-12-10 10:13:25 +01:00
apikey.go Re-implement libstorj API (V2) using libuplink (V3) (#2573) 2019-07-30 13:40:05 +02:00
bucket.go lib/uplinkc: use SliceHeader instead of [1<<30] 2019-12-13 16:49:41 +00:00
convert.go libuplink: Add size to ObjectInfo (#2714) 2019-08-06 11:36:35 +02:00
encryption_access.go Re-implement libstorj API (V2) using libuplink (V3) (#2573) 2019-07-30 13:40:05 +02:00
handles_test.go jenkins: update to golangci-lint 1.21.0 (#3289) 2019-10-17 10:42:22 +03:00
handles.go jenkins: update to golangci-lint 1.21.0 (#3289) 2019-10-17 10:42:22 +03:00
main.go Uplink C bindings part 1 (#2196) 2019-06-13 11:09:05 -04:00
object.go lib/uplinkc: use SliceHeader instead of [1<<30] 2019-12-13 16:49:41 +00:00
project.go lib/uplink: ensure it's silent by default (#2676) 2019-08-01 07:14:09 -04:00
scope.go private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00
testdata_test.go replace planet.Start in tests with planet.Run 2019-12-10 16:55:54 +00:00
uplink_definitions.h uplinkc: basic support for Scope (#3689) 2019-12-04 18:36:01 +01:00
uplink.go private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00