Pulled out EndianSwap into its own function.
Pulled out EndianSwap into its own function.

Change-Id: I4a587102db8c435b739c92b6c464c94c4ea1fe42

stewartmiles/flatbuffers,SinbadFreedom/FlatBuffer,evolutional/flatbuffers,FrankStain/flatbuffers,royalharsh/flatbuffers,zarianw/flatbuffers,benssson/flatbuffers,benssson/flatbuffers,stewartmiles/flatbuffers,kiyoto-suzuki/flatbuffers,royalharsh/flatbuffers,endorph-soft/flatbuffers,zarianw/flatbuffers,google/flatbuffers,DavadDi/flatbuffers,eburkitt/flatbuffers,DavadDi/flatbuffers,alexames/flatbuffers,alexames/flatbuffers,endorph-soft/flatbuffers,bog-dan-ro/flatbuffers,stewartmiles/flatbuffers,alexames/flatbuffers,bog-dan-ro/flatbuffers,zarianw/flatbuffers,evolutional/flatbuffers,SinbadFreedom/FlatBuffer,evolutional/flatbuffers,fuchsia-mirror/third_party-flatbuffers,FrankStain/flatbuffers,pjulien/flatbuffers,pjulien/flatbuffers,pjulien/flatbuffers,stewartmiles/flatbuffers,alexames/flatbuffers,chenkai036/flatbuffers,chenkai036/flatbuffers,rw/flatbuffers,zarianw/flatbuffers,zarianw/flatbuffers,evolutional/flatbuffers,alexames/flatbuffers,pjulien/flatbuffers,royalharsh/flatbuffers,pjulien/flatbuffers,jasonstubbs/flatbuffers,eburkitt/flatbuffers,jasonstubbs/flatbuffers,royalharsh/flatbuffers,rw/flatbuffers,MiCHiLU/flatbuffers,stewartmiles/flatbuffers,vitalyisaev2/flatbuffers,rw/flatbuffers,google/flatbuffers,SinbadFreedom/FlatBuffer,kiyoto-suzuki/flatbuffers,rw/flatbuffers,alexames/flatbuffers,SinbadFreedom/FlatBuffer,evolutional/flatbuffers,vitalyisaev2/flatbuffers,fuchsia-mirror/third_party-flatbuffers,MiCHiLU/flatbuffers,google/flatbuffers,jbrads/flatbuffers,MiCHiLU/flatbuffers,royalharsh/flatbuffers,vitalyisaev2/flatbuffers,pjulien/flatbuffers,pjulien/flatbuffers,chenkai036/flatbuffers,alexames/flatbuffers,FrankStain/flatbuffers,evolutional/flatbuffers,fuchsia-mirror/third_party-flatbuffers,zarianw/flatbuffers,fuchsia-mirror/third_party-flatbuffers,google/flatbuffers,google/flatbuffers,bog-dan-ro/flatbuffers,pjulien/flatbuffers,fuchsia-mirror/third_party-flatbuffers,vitalyisaev2/flatbuffers,jekinchen/flatjni,jbrads/flatbuffers,google/flatbuffers,pjulien/flatbuffers,FrankStain/flatbuffers,royalharsh/flatbuffers,evolutional/flatbuffers,rw/flatbuffers,fuchsia-mirror/third_party-flatbuffers,bog-dan-ro/flatbuffers,benssson/flatbuffers,alexames/flatbuffers,endorph-soft/flatbuffers,endorph-soft/flatbuffers,alexames/flatbuffers,evolutional/flatbuffers,vitalyisaev2/flatbuffers,stewartmiles/flatbuffers,DavadDi/flatbuffers,bog-dan-ro/flatbuffers,jekinchen/flatjni,jasonstubbs/flatbuffers,chenkai036/flatbuffers,evolutional/flatbuffers,hgl888/flatbuffers,pjulien/flatbuffers,eburkitt/flatbuffers,jbrads/flatbuffers,endorph-soft/flatbuffers,rw/flatbuffers,jekinchen/flatjni,MiCHiLU/flatbuffers,bog-dan-ro/flatbuffers,MiCHiLU/flatbuffers,evolutional/flatbuffers,alexames/flatbuffers,stewartmiles/flatbuffers,eburkitt/flatbuffers,vitalyisaev2/flatbuffers,DavadDi/flatbuffers,SinbadFreedom/FlatBuffer,google/flatbuffers,google/flatbuffers,kiyoto-suzuki/flatbuffers,SinbadFreedom/FlatBuffer,eburkitt/flatbuffers,google/flatbuffers,eburkitt/flatbuffers,hgl888/flatbuffers,FrankStain/flatbuffers,rw/flatbuffers,chenkai036/flatbuffers,evolutional/flatbuffers,jekinchen/flatjni,benssson/flatbuffers,pjulien/flatbuffers,stewartmiles/flatbuffers,google/flatbuffers,chenkai036/flatbuffers,eburkitt/flatbuffers,jasonstubbs/flatbuffers,MiCHiLU/flatbuffers,rw/flatbuffers,alexames/flatbuffers,bog-dan-ro/flatbuffers,kiyoto-suzuki/flatbuffers,alexames/flatbuffers,jbrads/flatbuffers,fuchsia-mirror/third_party-flatbuffers,benssson/flatbuffers,FrankStain/flatbuffers,jekinchen/flatjni,endorph-soft/flatbuffers,DavadDi/flatbuffers,benssson/flatbuffers,google/flatbuffers,google/flatbuffers,kiyoto-suzuki/flatbuffers,alexames/flatbuffers,stewartmiles/flatbuffers,chenkai036/flatbuffers,endorph-soft/flatbuffers,jasonstubbs/flatbuffers,jbrads/flatbuffers,jasonstubbs/flatbuffers,jekinchen/flatjni,rw/flatbuffers,jekinchen/flatjni,royalharsh/flatbuffers,hgl888/flatbuffers,evolutional/flatbuffers,MiCHiLU/flatbuffers,benssson/flatbuffers,jbrads/flatbuffers,fuchsia-mirror/third_party-flatbuffers,jekinchen/flatjni,hgl888/flatbuffers,DavadDi/flatbuffers,zarianw/flatbuffers,bog-dan-ro/flatbuffers,jasonstubbs/flatbuffers,evolutional/flatbuffers,kiyoto-suzuki/flatbuffers,chenkai036/flatbuffers,chenkai036/flatbuffers,vitalyisaev2/flatbuffers,royalharsh/flatbuffers,jekinchen/flatjni,stewartmiles/flatbuffers,FrankStain/flatbuffers,MiCHiLU/flatbuffers,jbrads/flatbuffers,zarianw/flatbuffers,vitalyisaev2/flatbuffers,benssson/flatbuffers,rw/flatbuffers,rw/flatbuffers,kiyoto-suzuki/flatbuffers,endorph-soft/flatbuffers,hgl888/flatbuffers,rw/flatbuffers,kiyoto-suzuki/flatbuffers,royalharsh/flatbuffers,endorph-soft/flatbuffers,royalharsh/flatbuffers,stewartmiles/flatbuffers,SinbadFreedom/FlatBuffer,SinbadFreedom/FlatBuffer,pjulien/flatbuffers,google/flatbuffers,jasonstubbs/flatbuffers,hgl888/flatbuffers,jekinchen/flatjni,google/flatbuffers,google/flatbuffers,stewartmiles/flatbuffers,alexames/flatbuffers,chenkai036/flatbuffers,stewartmiles/flatbuffers,alexames/flatbuffers,jbrads/flatbuffers,endorph-soft/flatbuffers,eburkitt/flatbuffers,FrankStain/flatbuffers,kiyoto-suzuki/flatbuffers