github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/math/big/intmarsh.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 Ints.
     6  
     7  package big
     8  
     9  // GobEncodeは、[encoding/gob.GobEncoder] インターフェースを実装します。
    10  func (x *Int) GobEncode() ([]byte, error)
    11  
    12  // GobDecodeは、[encoding/gob.GobDecoder] インターフェースを実装します。
    13  func (z *Int) GobDecode(buf []byte) error
    14  
    15  // MarshalTextは、[encoding.TextMarshaler] インターフェースを実装します。
    16  func (x *Int) MarshalText() (text []byte, err error)
    17  
    18  // UnmarshalTextは、[encoding.TextUnmarshaler] インターフェースを実装します。
    19  func (z *Int) UnmarshalText(text []byte) error
    20  
    21  // MarshalJSONは、[json.Marshaler] インターフェースを実装します。
    22  func (x *Int) MarshalJSON() ([]byte, error)
    23  
    24  // UnmarshalJSONは、[json.Unmarshaler] インターフェースを実装します。
    25  func (z *Int) UnmarshalJSON(text []byte) error