Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: segmentio/kafka-go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.4.41
Choose a base ref
...
head repository: segmentio/kafka-go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.4.42
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jul 7, 2023

  1. Add float64 operations to reflect unsafe (#1158)

    * Add float64 operations to reflect unsafe
    
    * Fix typo
    mhmtszr authored Jul 7, 2023
    Copy the full SHA
    72279f4 View commit details
Showing with 4 additions and 0 deletions.
  1. +4 −0 protocol/reflect_unsafe.go
4 changes: 4 additions & 0 deletions protocol/reflect_unsafe.go
Original file line number Diff line number Diff line change
@@ -63,6 +63,8 @@ func (v value) int32() int32 { return *(*int32)(v.ptr) }

func (v value) int64() int64 { return *(*int64)(v.ptr) }

func (v value) float64() float64 { return *(*float64)(v.ptr) }

func (v value) string() string { return *(*string)(v.ptr) }

func (v value) bytes() []byte { return *(*[]byte)(v.ptr) }
@@ -92,6 +94,8 @@ func (v value) setInt32(i int32) { *(*int32)(v.ptr) = i }

func (v value) setInt64(i int64) { *(*int64)(v.ptr) = i }

func (v value) setFloat64(f float64) { *(*float64)(v.ptr) = f }

func (v value) setString(s string) { *(*string)(v.ptr) = s }

func (v value) setBytes(b []byte) { *(*[]byte)(v.ptr) = b }