github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/math/big/ratmarsh.go (about) 1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // This file implements encoding/decoding of Rats. 6 7 package big 8 9 // GobEncodeは、[encoding/gob.GobEncoder] インターフェースを実装します。 10 func (x *Rat) GobEncode() ([]byte, error) 11 12 // GobDecodeは、[encoding/gob.GobDecoder] インターフェースを実装します。 13 func (z *Rat) GobDecode(buf []byte) error 14 15 // MarshalTextは、[encoding.TextMarshaler] インターフェースを実装します。 16 func (x *Rat) MarshalText() (text []byte, err error) 17 18 // UnmarshalTextは、[encoding.TextUnmarshaler] インターフェースを実装します。 19 func (z *Rat) UnmarshalText(text []byte) error