kubernetes/vendor/gopkg.in/square/go-jose.v2/encoding.go

// Helper function to serialize known-good objects.
// Precondition: value is not a nil pointer.
func mustSerializeJSON(value interface{}

// Strip all newlines and whitespace
func stripWhitespace(data string) string {}

// Perform compression based on algorithm
func compress(algorithm CompressionAlgorithm, input []byte) ([]byte, error) {}

// Perform decompression based on algorithm
func decompress(algorithm CompressionAlgorithm, input []byte) ([]byte, error) {}

// Compress with DEFLATE
func deflate(input []byte) ([]byte, error) {}

// Decompress with DEFLATE
func inflate(input []byte) ([]byte, error) {}

type byteBuffer

func newBuffer(data []byte) *byteBuffer {}

func newFixedSizeBuffer(data []byte, length int) *byteBuffer {}

func newBufferFromInt(num uint64) *byteBuffer {}

func (b *byteBuffer) MarshalJSON() ([]byte, error) {}

func (b *byteBuffer) UnmarshalJSON(data []byte) error {}

func (b *byteBuffer) base64() string {}

func (b *byteBuffer) bytes() []byte {}

func (b byteBuffer) bigInt() *big.Int {}

func (b byteBuffer) toInt() int {}