package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Sep 1, 2020
License: LGPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package media provides an implementation for NDEF Payloads for media
types.
type Payload struct {
MimeType string
Payload []byte
}
Payload is a wrapper to store a Payload
New returns a pointer to a Payload type holding the given payload with the
given type.
Len is the length of the byte slice resulting of Marshaling
this Payload.
Marshal returns the bytes representing the payload
String returns a string explaining that we are not sure how to print
this type.
Type returns the mime type of this payload.
Unmarshal parses a generic payload
Source Files
¶
Click to show internal directories.
Click to hide internal directories.