Re: [PATCH v6 06/13] pkt-line: add functions to read/write flush terminated packet streams

2 messages, 2 authors, 2016-08-29 · open the first message on its own page

Re: [PATCH v6 06/13] pkt-line: add functions to read/write flush terminated packet streams

From: Junio C Hamano <hidden>
Date: 2016-08-26 17:21:33

Lars Schneider [off-list ref] writes:
OK, what function names would be more clear from your point of view?

write_packetized_stream_from_fd()
write_packetized_stream_from_buf()
read_packetized_stream_to_buf()
Would

    write_packetized_from_fd()
    write_packetized_from_buf()
    read_packetized_to_buf()

be shorter, still understandable, be consistent with the existing
convention to name write_/read_ a function that shuffles bytes via a
file descriptor, and to the point, perhaps?

Re: [PATCH v6 06/13] pkt-line: add functions to read/write flush terminated packet streams

From: Lars Schneider <hidden>
Date: 2016-08-29 09:43:19

On 26 Aug 2016, at 19:21, Junio C Hamano [off-list ref] wrote:

Lars Schneider [off-list ref] writes:
quoted
OK, what function names would be more clear from your point of view?

write_packetized_stream_from_fd()
write_packetized_stream_from_buf()
read_packetized_stream_to_buf()
Would

   write_packetized_from_fd()
   write_packetized_from_buf()
   read_packetized_to_buf()

be shorter, still understandable, be consistent with the existing
convention to name write_/read_ a function that shuffles bytes via a
file descriptor, and to the point, perhaps?
Agreed.

Thanks,
Lars
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help