Skip to content

Commit e024428

Browse files
committed
Document endianness bug.
1 parent 828a5e2 commit e024428

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

binary.go

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import (
77

88
const binVer0 = 0
99

10+
// BUG(korthaj): Filters cannot be moved between little-endian
11+
// and big-endian machines.
12+
1013
// Data to be included in binary representation of Filter.
1114
type marshalFilter struct {
1215
Version int
@@ -20,6 +23,8 @@ type marshalFilter struct {
2023
// This method implements the encoding.BinaryMarshaler interface.
2124
// The packages encoding/gob, encoding/json, and encoding/xml
2225
// all check for this interface.
26+
//
27+
// Filters cannot be moved between little-endian and big-endian machines.
2328
func (f *Filter) MarshalBinary() ([]byte, error) {
2429
mf := marshalFilter{
2530
Version: binVer0,

0 commit comments

Comments
 (0)