Change deserializeFromBuffer to deserializeFromByteBuffer