Package com.ngt.jopenmetaverse.shared.structureddata

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSD.asBinary()


        Assert.assertEquals(OSDType.Binary, llsdBytes.getType());
        byte[] contentBinString = { 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, 0x73,
                                    0x69, 0x6d, 0x70, 0x6c, 0x65, 0x20, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x20, 0x63, 0x6f,
                                    0x6e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68,
                                    0x69, 0x73, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0xa, 0xd };
        Assert.assertArrayEquals(contentBinString, llsdBytes.asBinary());
    }

    @Test
    public void SerializeLLSDBinary() throws Exception
    {
View Full Code Here


              OSD llsdBinary = OSD.FromBinary(binary);
              String sBinarySerialized = NotationalLLSDOSDParser.SerializeLLSDNotation(llsdBinary);
              OSD llsdBinaryDS = NotationalLLSDOSDParser.DeserializeLLSDNotation(sBinarySerialized);
              Assert.assertEquals(OSDType.Binary, llsdBinaryDS.getType());
              Assert.assertArrayEquals(binary, llsdBinaryDS.asBinary());
          }

          @Test
          public void DeserializeArray() throws OSDException, IOException
          {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.