@Test public void testToByteArrayNotNull() throws Exception { final byte[] data = ProtoUtils.toByteArray(new SettingsProto.Settings()); assertNotNull(data); }
@NonNull public static byte[] toByteArray(@NonNull final MessageNano messageNano) throws IOException { final byte[] output = new byte[messageNano.getSerializedSize()]; messageNano.writeTo(CodedOutputByteBufferNano.newInstance(output)); return output; }
ProtoUtils { @NonNull public static byte[] toByteArray(@NonNull final MessageNano messageNano) throws IOException { final byte[] output = new byte[messageNano.getSerializedSize()]; messageNano.writeTo(CodedOutputByteBufferNano.newInstance(output)); return output; } }
ProtoUtils { @NonNull public static byte[] toByteArray(@NonNull final MessageNano messageNano) throws IOException { final byte[] output = new byte[messageNano.getSerializedSize()]; messageNano.writeTo(CodedOutputByteBufferNano.newInstance(output)); return output; } private  ProtoUtils(); }
ProtoUtils { @NonNull public static byte[] toByteArray(@NonNull final MessageNano messageNano) throws IOException { final byte[] output = new byte[messageNano.getSerializedSize()]; messageNano.writeTo(CodedOutputByteBufferNano.newInstance(output)); return output; } private  ProtoUtils(); @NonNull static byte[] toByteArray(@NonNull final MessageNano messageNano); static void writeToFile(@NonNull final Context context,
            @NonNull final String fileName,
            @NonNull final MessageNano messageNano); @Nullable static T readFromFile(@NonNull final Context context,
            @NonNull final String fileName,
            @NonNull final T obj); @NonNull static T readFromFileNonNull(@NonNull final Context context,
            @NonNull final String fileName,
            @NonNull final T obj); }
ProtoUtils { @NonNull public static byte[] toByteArray(@NonNull final MessageNano messageNano) throws IOException { final byte[] output = new byte[messageNano.getSerializedSize()]; messageNano.writeTo(CodedOutputByteBufferNano.newInstance(output)); return output; } private  ProtoUtils(); @NonNull static byte[] toByteArray(@NonNull final MessageNano messageNano); static void writeToFile(@NonNull final Context context,
            @NonNull final String fileName,
            @NonNull final MessageNano messageNano); @Nullable static T readFromFile(@NonNull final Context context,
            @NonNull final String fileName,
            @NonNull final T obj); @NonNull static T readFromFileNonNull(@NonNull final Context context,
            @NonNull final String fileName,
            @NonNull final T obj);  }