NdefMessage.ByteArrayLength Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the length of this NDEF Message if it is written to a byte array
with #toByteArray
.
public int ByteArrayLength { [Android.Runtime.Register("getByteArrayLength", "()I", "")] get; }
[<get: Android.Runtime.Register("getByteArrayLength", "()I", "")>]
member this.ByteArrayLength : int
Property Value
length of this NDEF Message when written to bytes with #toByteArray
- Attributes
Remarks
Return the length of this NDEF Message if it is written to a byte array with #toByteArray
.
An NDEF Message can be formatted to bytes in different ways depending on chunking, SR, and ID flags, so the length returned by this method may not be equal to the length of the original byte array used to construct this NDEF Message. However it will always be equal to the length of the byte array produced by #toByteArray
.
Java documentation for android.nfc.NdefMessage.getByteArrayLength()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.