In MWCs past, the event's news has typically been dominated by Samsung showing off its latest Galaxy flagship smartphone for the year. But the company's delayed announcement this time around meant that the scores of tech aficionados at the show neede…
Category: I-phone
Iphone ,Apple I-Phone Tutorials,Jailbraik,3g,3gs,2g, 3gs untethered ,3.1.2,3.1.3,geohot
Motorola’s Alexa mod is just the start of an important AI plan
Motorola might have lured people to its MWC press conference with the promise of new phones, but the real talking point came toward the end of the event. After hyping a pair of midrange devices and some fun Moto Mod concepts, the company confirmed th…
Ubisoft is building a game in the ‘Avatar’ universe
Alongside this week's Game Developer Conference in San Francisco, Ubisoft announced its next AAA-project: a new experience set on the moon Pandora from James Cameron's Avatar universe. The game is being developed by Massive Entertainment, the Ubisoft…
SwiftMsgPack – Swift Library For Easily Working With The Binary MsgPack Object Serialization Format
SwiftMsgPack is an open source library Swift based library submitted by Daniele Margutti for object serialization using MsgPack.
MsgPack is an efficient binary-based serialization library that is faster and more efficient than JSON because of its compact binary format. This can result in dramatic bandwidth savings, and MsgPack is already supported by over 50 languages.
SwiftMsgPack provides a simple syntax for both object serialization and de-serialization:
This snippet from the readme shows how to serialize and de-serialize using SwiftMsgPack:
do {
let obj1 = "Hello World"
let obj2 = 45.5
let obj3: [AnyHashable:Any?] = [ "key_1" : "value test","key_2" : 4,"key_3" : true, otherHashableKey: "value1"]
// Now you can pack your instances by passing them to pack function
try data.pack(obj1,obj2,obj3)
} catch {
print("Something went wrong while packing data: (error)")<br />
}
let data: Data = // msgpack data…
do {
let decodedObj: Any? = try data.unpack()
} catch {
print("Something went wrong while unpacking data: (error)")<br />
}
You can find SwiftMsgPack on Github here.
A useful library for object serialization/deserialization.
Original article: SwiftMsgPack – Swift Library For Easily Working With The Binary MsgPack Object Serialization Format
©2017 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.
Lead an army of cartoon heroes in Epic’s latest game
Epic Games announced Battle Breakers, its new free-to-play title for mobile and PC, at the Game Developers Conference in San Francisco. The game looks like a Saturday-morning cartoon, complete with larger-than-life characters and a huge, cinematic so…
One billion hours of YouTube are watched every day
It's easy to track YouTube's most popular metric: Check the counter below any video to see how many times it's been played. It's harder to know how long viewers watch, which YouTube staff started tracking years ago. Today, those stats passed an auspi…
Porsche Design reveals a Windows 2-in-1 convertible
Porsche Design had another Mobile World Congress revelation besides a limited edition version of Huawei's Watch 2. The design group has also announced a laptop-tablet convertible and detachable hybrid of its own called Book One, which looks like it w…
Non-profit aims to preserve the hidden history of video games
It's relatively easy for developers to preserve classic video games through emulators, museums, remasters and retro consoles. But what about the culture that surrounded it, such as ads, boxes, magazines and gamers' own experiences? That's where the n…
‘Hearthstone’ gets first expansion of the year in early April
It doesn't take much to set video game fans down rumor rabbit holes these days, but in this case, hints about Hearthstone's first expansion in 2017 were correct. Blizzard has officially announced that Journey to Un'Goro will be the next content block…
Amazon is teaching Alexa to distinguish different voices
For all of Alexa's many skills, one major thing Amazon's voice assistant is currently missing is the ability to distinguish who is actually speaking to it. According to a new report from Time magazine, however, the online retail giant is currently wo…
What’s on TV: ‘Horizon Zero Dawn,’ ‘Moonlight’
This week's big premieres are Horizon Zero Dawn on the PS4, and Nintendo's Switch console. If you're not pulled in by open-world charms or Joycons, then remember Planet Earth II is continuing on BBC America, and this week we're visiting the jungles….
Visit NASA’s newly discovered planets in ‘Elite: Dangerous’
Sadly, it's unlikely that you'll ever visit the Trappist-1 system's newly-discovered Earth-sized planets in your lifetime… not unless someone develops near-light speed travel, anyway. However, you'll at least have the option of a virtual tour. Fron…
Here’s what you missed from the MWC 2017 press events
All the big press conferences here at MWC 2017 are finally over, and that means it's time to bring you all the news and reports of the quirkiest developments on the show floor. But in case you haven't been closely following the announcements out of B…
Fox tests auto-downloading movies onto your phone
Wouldn't you like it if newish movies trickle-downloaded onto your phone when you weren't looking so you could watch them later? That's the concept behind an experiment being carried out by 20th Century Fox over the next month. The studio has partner…
Sensor turns on a cop’s body camera when their gun is pulled
Years after high-profile police shootings pressured departments across the country to adopt body cameras, results have been mixed. The increased accountability expected from their rollout has been marred with technical malfunctions or absent footage…