TABLE OF CONTENTS

 

[Classes] Ndef

NAME

   Ndef

DESCRIPTION

   Represents a NDEF message, or portion of message

DERIVED BY

   Rtd

SYNOPSIS

   Ndef ndef = new Ndef(bytes[])
   Ndef ndef = new Ndef(byte TNF, string TYPE)
   Ndef ndef = new Ndef(byte TNF, string TYPE, byte[] PAYLOAD)
   Ndef ndef = new Ndef(Ndef ndef)

[Methods] Ndef.Encode

SYNOPSIS

   public virtual bool Encode(ref byte[] buffer)

DESCRIPTION

   Serializes the NDEF and returns true if the operation succeeds

[Methods] Ndef.GetBytes

SYNOPSIS

   public byte[] GetBytes(bool isBegin, bool isEnd)
       public byte[] GetBytes()

DESCRIPTION

   Uses the "Encode" method to serialize the ndef and returns the byte array.
       The two parameters isBegin and isEnd indicate if the NDEF is the first or the last
       in a series of NDEF

SEE ALSO

   Ndef.Encode

[Variables] Ndef.ID

SYNOPSIS

   public byte[] ID

DESCRIPTION

   Gets and sets the Id of the NDEF

[Methods] Ndef.NdefFoundCallback

SYNOPSIS

   public delegate void NdefFoundCallback(Ndef ndef)

DESCRIPTION

   Specifies the callback that will be called once a NDEF is found

SEE ALSO

   Ndef.Parse

[Methods] Ndef.Parse

SYNOPSIS

   public static bool Parse(byte [] buffer, NdefFoundCallback callback)
       public static bool Parse(byte[] buffer, ref int offset, ref Ndef ndef, ref bool terminated)
       public static Ndef[] Parse(byte[] buffer)

DESCRIPTION

   Analyses a bytes array to retrieve one or several NDEFs in it

SEE ALSO

   Ndef.Parse

[Variables] Ndef.PAYLOAD

SYNOPSIS

   public byte[] PAYLOAD

DESCRIPTION

   Gets and sets the Payload of the NDEF

[Methods] Ndef.SetMessageBegin

SYNOPSIS

   public void SetMessageBegin(bool mb)

DESCRIPTION

   Sets the "MESSAGE BEGIN" bit in header

SEE ALSO

   Ndef.SetMessageEnd

[Methods] Ndef.SetMessageEnd

SYNOPSIS

   public void SetMessageEnd(bool me)

DESCRIPTION

   Sets the "MESSAGE END" bit in header

SEE ALSO

   Ndef.SetMessageBegin

[Methods] Ndef.Size

SYNOPSIS

   public int Size(ref bool is_short_record)

DESCRIPTION

   Calculates the size in bytes of the whole NDEF
   The parameter is_short_record indicates if the NDEF is a short record
       (length of payload < 256)

[Variables] Ndef.TNF

SYNOPSIS

   public byte TNF

DESCRIPTION

   Gets and sets the Type Name Format of the NDEF

[Variables] Ndef.TYPE

SYNOPSIS

   public string TYPE

DESCRIPTION

   Gets and sets the Type of the NDEF

Generated from Ndef.cs on Wed Dec 04 16:59:52 2013