Documentation
¶
Index ¶
- Variables
- func IsStatus(err error, sw uint16) bool
- type Request
- type Response
- func (r Response) Data() []byte
- func (r Response) HasMore() bool
- func (r Response) MarshalBinary() ([]byte, error)
- func (r Response) OK() bool
- func (r Response) SW() uint16
- func (r Response) SW1() byte
- func (r Response) SW2() byte
- func (r Response) String() string
- func (r *Response) UnmarshalBinary(data []byte) error
- func (r Response) WriteTo(w io.Writer) (int64, error)
- type StatusError
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMalformedResponse = errors.New("malformed APDU response")
Functions ¶
Types ¶
type Response ¶
type Response []byte
func (Response) MarshalBinary ¶
func (*Response) UnmarshalBinary ¶
type StatusError ¶
type StatusError struct {
SW uint16
}
func (StatusError) Error ¶
func (e StatusError) Error() string
Click to show internal directories.
Click to hide internal directories.