go-libwebp

Experimental translation from libwebp to Go source.
Log | Files | Refs | README | LICENSE

commit 254ea970859cbc90d79c6d7814217bfa22952ed7
parent 3bdb494d680194db381a9af72985f142bfbe5d9d
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date:   Tue, 25 Jan 2022 19:26:14 +0800

webp: doc fundamental assumptions

Add context to this implementation.

Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>

Diffstat:
Mmain.go | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/main.go b/main.go @@ -82,6 +82,14 @@ func run(args []string) error { // // Input data is expected to be sorted low to high, and contain i32. // +// Assuming i32 is technically eroneous and we should use the predicate +// function to capture type information to keep this function data agnostic. +// However it might be better to simply implement a Go idiomatic function +// that doesn't operate on raw memory. +// +// Given that this function is used exactly once and the data used is i32 +// this works. +// // key: raw pointer to object that serves as key // base: raw pointer to first element in array // elements: number of elements in array