We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 828a5e2 commit e024428Copy full SHA for e024428
binary.go
@@ -7,6 +7,9 @@ import (
7
8
const binVer0 = 0
9
10
+// BUG(korthaj): Filters cannot be moved between little-endian
11
+// and big-endian machines.
12
+
13
// Data to be included in binary representation of Filter.
14
type marshalFilter struct {
15
Version int
@@ -20,6 +23,8 @@ type marshalFilter struct {
20
23
// This method implements the encoding.BinaryMarshaler interface.
21
24
// The packages encoding/gob, encoding/json, and encoding/xml
22
25
// all check for this interface.
26
+//
27
+// Filters cannot be moved between little-endian and big-endian machines.
28
func (f *Filter) MarshalBinary() ([]byte, error) {
29
mf := marshalFilter{
30
Version: binVer0,
0 commit comments